import * as React from 'react' export type FormProps = { /** * Content of form element */ children: React.ReactNode /** * string used to label the form for assistive technologies */ label: string } & Omit, 'aria-label'> const Noop: React.FormEventHandler = () => {} /** * Form wrap component to give semantic context to form elements. * * `import { Form } from '@planview/pv-form'` * * Enforces the accessibility good practice to label forms */ const Form: React.FC = ({ children, onSubmit = Noop, label, ...rest }) => (
{children}
) export { Form } export default Form