Checkbox
Binary or indeterminate toggle control.
Generado a partir del código fuente público del paquete.
API
CheckboxGroupPropsinterfaz
Propiedades
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.
hijos: Element
CheckboxIndicatorPropsinterfaz
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
CheckboxRootPropsinterfaz
Propiedades
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.
hijos: Element
CheckedStatetipo
Groupcomponente
Group(props: CheckboxGroupProps): Element
Propiedades
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.
hijos: Element
Indicatorcomponente
Indicator(props: CheckboxIndicatorProps): Element
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
Rootcomponente
Root(props: CheckboxRootProps): Element
Propiedades
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.
hijos: Element
useCheckboxGroupfunción
useCheckboxGroup(): CheckboxGroupContextValue | null