import { type FormHTMLAttributes, forwardRef, type ForwardRefRenderFunction, } from 'react'; export type FormRole = 'form' | 'search' | 'none' | 'presentation'; export type FormProps = FormHTMLAttributes & { /** * An accessible role. */ role?: FormRole; }; const FormWithRef: ForwardRefRenderFunction = ( { children, ...props }, ref ) => (
{children}
); /** * Form component. */ export const Form = forwardRef(FormWithRef);