Checkbox
Binary or indeterminate toggle control.
Generated from the package's public source.
API
CheckboxGroupPropsinterface
Props
class?stringdefaultValue?string[]— Default value (uncontrolled).disabled?booleanonValueChange?(value: string[]) => void— Called when the set of checked values changes.style?string | CSSPropertiesvalue?Accessor<string[] | undefined>— Controlled value — array of checked item values.
children: Element
CheckboxIndicatorPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
CheckboxRootPropsinterface
Props
checked?Accessor<CheckedState | undefined>class?stringdefaultChecked?CheckedStatedisabled?booleanname?stringonCheckedChange?(checked: CheckedState) => voidrequired?booleanstyle?string | CSSPropertiesvalue?string— When used inside a CheckboxGroup, identifies this checkbox's value.
children: Element
CheckedStatetype
Groupcomponent
Group(props: CheckboxGroupProps): Element
Props
class?stringdefaultValue?string[]— Default value (uncontrolled).disabled?booleanonValueChange?(value: string[]) => void— Called when the set of checked values changes.style?string | CSSPropertiesvalue?Accessor<string[] | undefined>— Controlled value — array of checked item values.
children: Element
Indicatorcomponent
Indicator(props: CheckboxIndicatorProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
Rootcomponent
Root(props: CheckboxRootProps): Element
Props
checked?Accessor<CheckedState | undefined>class?stringdefaultChecked?CheckedStatedisabled?booleanname?stringonCheckedChange?(checked: CheckedState) => voidrequired?booleanstyle?string | CSSPropertiesvalue?string— When used inside a CheckboxGroup, identifies this checkbox's value.
children: Element
useCheckboxGroupfunction
useCheckboxGroup(): CheckboxGroupContextValue | null