BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Checkbox

Binary or indeterminate toggle control.

Paquete
@solidiom/checkbox
Versión
0.0.1-next.0
Estado
stable

Generado a partir del código fuente público del paquete.

API

CheckboxGroupPropsinterfaz

Propiedades

class?
string
defaultValue?
string[] — Default value (uncontrolled).
disabled?
boolean
onValueChange?
(value: string[]) => void — Called when the set of checked values changes.
style?
string | CSSProperties
value?
Accessor<string[] | undefined> — Controlled value — array of checked item values.

hijos: Element

Ver código fuente

CheckboxIndicatorPropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

CheckboxRootPropsinterfaz

Propiedades

checked?
Accessor<CheckedState | undefined>
class?
string
defaultChecked?
CheckedState
disabled?
boolean
name?
string
onCheckedChange?
(checked: CheckedState) => void
required?
boolean
style?
string | CSSProperties
value?
string — When used inside a CheckboxGroup, identifies this checkbox's value.

hijos: Element

Ver código fuente

CheckedStatetipo

Ver código fuente

Groupcomponente

                        Group(props: CheckboxGroupProps): Element
                      

Propiedades

class?
string
defaultValue?
string[] — Default value (uncontrolled).
disabled?
boolean
onValueChange?
(value: string[]) => void — Called when the set of checked values changes.
style?
string | CSSProperties
value?
Accessor<string[] | undefined> — Controlled value — array of checked item values.

hijos: Element

Ver código fuente

Indicatorcomponente

                        Indicator(props: CheckboxIndicatorProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

Rootcomponente

                        Root(props: CheckboxRootProps): Element
                      

Propiedades

checked?
Accessor<CheckedState | undefined>
class?
string
defaultChecked?
CheckedState
disabled?
boolean
name?
string
onCheckedChange?
(checked: CheckedState) => void
required?
boolean
style?
string | CSSProperties
value?
string — When used inside a CheckboxGroup, identifies this checkbox's value.

hijos: Element

Ver código fuente

useCheckboxGroupfunción

                        useCheckboxGroup(): CheckboxGroupContextValue | null
                      

Ver código fuente