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

Toggle Group

Group of mutually-exclusive or multi-select toggle buttons.

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

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

API

Itemcomponente

                        Item(props: ToggleGroupItemProps): Element
                      

Propiedades

class?
string
disabled?
boolean
style?
string | CSSProperties
value
string — The value this item represents.

hijos: Element

Ver código fuente

Rootcomponente

                        Root(props: ToggleGroupRootProps): Element
                      

Propiedades

class?
string
defaultValue?
string[] — Default value (uncontrolled).
disabled?
boolean
onValueChange?
(value: string[]) => void — Called when the selected values change.
orientation?
"horizontal" | "vertical" — Layout orientation.
style?
string | CSSProperties
type?
"single" | "multiple" — Selection mode: "single" allows one active item, "multiple" allows many.
value?
Accessor<string[] | undefined> — Controlled value.

hijos: Element

Ver código fuente

ToggleGroupItemPropsinterfaz

Propiedades

class?
string
disabled?
boolean
style?
string | CSSProperties
value
string — The value this item represents.

hijos: Element

Ver código fuente

ToggleGroupRootPropsinterfaz

Propiedades

class?
string
defaultValue?
string[] — Default value (uncontrolled).
disabled?
boolean
onValueChange?
(value: string[]) => void — Called when the selected values change.
orientation?
"horizontal" | "vertical" — Layout orientation.
style?
string | CSSProperties
type?
"single" | "multiple" — Selection mode: "single" allows one active item, "multiple" allows many.
value?
Accessor<string[] | undefined> — Controlled value.

hijos: Element

Ver código fuente