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 React, { forwardRef } from "react";
|
||||
|
||||
import styles from "./Form.module.css";
|
||||
|
||||
export const Form = forwardRef(({ children, className, ...rest }, ref) => {
|
||||
return (
|
||||
<form {...rest} className={classNames(styles.form, className)} ref={ref}>
|
||||
{children}
|
||||
</form>
|
||||
);
|
||||
});
|
||||
export const Form = forwardRef<HTMLFormElement, { className: string }>(
|
||||
({ children, className, ...rest }, ref) => {
|
||||
return (
|
||||
<form {...rest} className={classNames(styles.form, className)} ref={ref}>
|
||||
{children}
|
||||
</form>
|
||||
);
|
||||
}
|
||||
);
|
Loading…
Reference in a new issue