Form
⚠️ This documentation file needs to be reviewed ⚠️, but the component is ready to use.
Form component is a lightweight wrapper around the native HTML <form>
element, providing a simple way to capture form submissions
in React while keeping layout up to you.
Basic Usage
To implement the Form component, you need to import it first:
import {
Form,
FormLayout,
TextField,
Button,
} from 'rades_react';
And use it:
<Form onSubmit={() => alert("Submitted")}>
<FormLayout>
<TextField label="Field" />
<Button label="Submit" type="submit"/>
</FormLayout>
</Form>
See API for all available options.