Select
Select<
FieldValues
>(props
):Element
Select components give users the ability to choose one or more options from a list of choices.
Type Parameters
Type Parameter |
---|
FieldValues extends Record <string , unknown > |
Parameters
Parameter | Type | Description |
---|---|---|
props | object | |
props.disabled ? | boolean | - |
props.error ? | object | An error message that overrides errors produced by built-in validation. |
props.error.message | string | - |
props.helpText ? | ReactNode | - |
props.label ? | string | - |
props.name | string | - |
props.options | undefined | OptionsOrGroups <unknown , GroupBase <unknown >> | - |
props.required ? | boolean | - |
Returns
Element