FormSelect

A FormSelect connects a Select to a Form component using react-hook-form.

This is a label for a fieldThis is a description for a field

Examples

Disabled keys

This is a label for a fieldThis is a description for a field

Borderless

This is a label for a fieldThis is a description for a field

Disabled

This is a label for a fieldThis is a description for a field

Invalid

This is a label for a fieldThis is a description for a field

Props

id
string
name
string
onFocus
((e: FocusEvent<Element, Element>) => void)
onBlur
((e: FocusEvent<Element, Element>) => void)
onKeyDown
((e: KeyboardEvent) => void)
onKeyUp
((e: KeyboardEvent) => void)
isDisabled
boolean
autoFocus
boolean
onFocusChange
((isFocused: boolean) => void)
disabledKeys
Iterable<Key>
excludeFromTabOrder
boolean
autoComplete
string
placeholder
string
isRequired
boolean
isInvalid
boolean
validate
((value: Key) => true | ValidationError | null)
onSelectionChange
((key: Key) => void)
selectedKey
Key | null
defaultSelectedKey
Key
onOpenChange
((isOpen: boolean) => void)
isOpen
boolean
defaultOpen
boolean
validationBehavior
"native" | "aria"'native'
children
ReactNode | ((values: SelectRenderProps & { defaultChildren: ReactNode; }) => ReactNode)
className
string | ((values: SelectRenderProps & { defaultClassName: string; }) => string)
style
CSSProperties | ((values: SelectRenderProps & { defaultStyle: CSSProperties; }) => CSSProperties)
slot
string | null
items
Iterable<T>
ref
ForwardedRef<HTMLDivElement>
showCheckmarkOnSelected
boolean