Field
Associate a label, description, and validation messages with a NewUI form control.
Basic usage
Field passes states such as required and invalid to its control. Correct the email in this example to clear the error message.
Used for account notifications.Include the full domain, such as example.com.
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
required | boolean | false |
invalid | boolean | false |
valid | boolean | false |
disabled | boolean | false |
readOnly | boolean | false |
size | sm | md | lg | md |