FormCheckboxGroup

A FormCheckboxGroup connects a CheckboxGroup to a Form component using react-hook-form.

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

Examples

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)
onChange
((value: string[]) => void)
isDisabled
boolean
onFocusChange
((isFocused: boolean) => void)
value
string[]
defaultValue
string[]
isReadOnly
boolean
isRequired
boolean
isInvalid
boolean
validate
((value: string[]) => true | ValidationError | null)
validationBehavior
"native" | "aria"'native'
children
ReactNode | ((values: CheckboxGroupRenderProps & { defaultChildren: ReactNode; }) => ReactNode)
className
string | ((values: CheckboxGroupRenderProps & { defaultClassName: string; }) => string)
style
CSSProperties | ((values: CheckboxGroupRenderProps & { defaultStyle: CSSProperties; }) => CSSProperties)
slot
string | null
ref
ForwardedRef<HTMLDivElement>