This commit is contained in:
Timo K 2022-07-07 23:40:29 +02:00
parent e5cfcb601b
commit 619e3c4852

View file

@ -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>
);
}
);