Form
The Form component provides a structured and efficient way to manage user input and submission within your application.
Installation
Install the package
npm i @start-base/react-form-elementsAdd the styles
To use the React form elements styles in a Next.js project, import the styles in your layout.tsx file.
app/layout.tsx
import "@start-base/react-form-elements/styles.css";Import the component
import Form from '@start-base/react-form-elements/Form';Usages
API
A wrapper component for form elements.
| Name | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | Children of the form |