errorMessage
Description
The form control error message to use.
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
Leave Yamada UI a star
StarFormControl
is a component used to group form elements with label, helper message, error message, etc.
Description
The form control error message to use.
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
Description
Props the error message component.
Type
ErrorMessageProps
Description
The form control helper message to use.
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
Description
Props the label component.
Type
HelperMessageProps
Description
If true
, the form control will be disabled.
Type
boolean
Default
false
Description
If true
, the form control will be invalid.
Type
boolean
Default
false
Description
If true
, the form control will be readonly.
Type
boolean
Default
false
Description
If true
, switch between helper message and error message using isInvalid.
Type
boolean
Default
true
Description
If true
, the form control will be required.
Type
boolean
Default
false
Description
The form control label to use.
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
Description
Props the label component.
Type
LabelProps
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
Type
boolean
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
Edit this page on GitHub