form
This commit is contained in:
		
					parent
					
						
							
								e5cfcb601b
							
						
					
				
			
			
				commit
				
					
						619e3c4852
					
				
			
		
					 1 changed files with 10 additions and 7 deletions
				
			
		| 
						 | 
					@ -16,12 +16,15 @@ limitations under the License.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import classNames from "classnames";
 | 
					import classNames from "classnames";
 | 
				
			||||||
import React, { forwardRef } from "react";
 | 
					import React, { forwardRef } from "react";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import styles from "./Form.module.css";
 | 
					import styles from "./Form.module.css";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const Form = forwardRef(({ children, className, ...rest }, ref) => {
 | 
					export const Form = forwardRef<HTMLFormElement, { className: string }>(
 | 
				
			||||||
  return (
 | 
					  ({ children, className, ...rest }, ref) => {
 | 
				
			||||||
    <form {...rest} className={classNames(styles.form, className)} ref={ref}>
 | 
					    return (
 | 
				
			||||||
      {children}
 | 
					      <form {...rest} className={classNames(styles.form, className)} ref={ref}>
 | 
				
			||||||
    </form>
 | 
					        {children}
 | 
				
			||||||
  );
 | 
					      </form>
 | 
				
			||||||
});
 | 
					    );
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					);
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue