Form
A form is a collection of input elements that allows the user to submit data to a server.
Import
Usage
Default
The Form
component is used to wrap form elements with a form
tag.
Helper Text
Use this component to provide additional information about the input field.
Your cool first name
Error
Use this component to display an error message when the input field is invalid. Add the invalid
prop to the Form.Control
component to apply error styles.
First name is required
Props
API Interface: FormProps
- invalid?
-
boolean
Whether the form control is invalid or not.
Default:
false
API Interface: FormControlProps
API Interface: FormErrorMessageProps
API Interface: FormHelperTextProps
API Interface: FormLabelProps