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

Tabs

Tabbed content switcher.

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

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

API

ActivationModetipo

Activation mode: automatic activates on focus, manual requires Enter/Space.

Ver código fuente

Contentcomponente

@solidiom/tabs — Headless tabs primitive with keyboard navigation and roving focus. Parts: Root, List, Trigger, Content.

                        Content(props: TabsContentProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties
value
string — Value identifying this panel. Must match a Trigger's value.

hijos: Element

Ver código fuente

Listcomponente

@solidiom/tabs — Headless tabs primitive with keyboard navigation and roving focus. Parts: Root, List, Trigger, Content.

                        List(props: TabsListProps): Element
                      

Propiedades

class?
string
ref?
(el: HTMLDivElement) => void

hijos: Element

Ver código fuente

Rootcomponente

@solidiom/tabs — Headless tabs primitive with keyboard navigation and roving focus. Parts: Root, List, Trigger, Content.

                        Root(props: TabsRootProps): Element
                      

Propiedades

activationMode?
ActivationMode — Activation mode: "automatic" (default) activates on focus, "manual" on Enter/Space.
defaultValue?
string — Default active tab for uncontrolled mode.
onValueChange?
(value: string, details: ChangeDetails<TabsReason>) => void — Called when active tab changes.
orientation?
"horizontal" | "vertical" — Orientation: "horizontal" (default) or "vertical".
value?
Accessor<string> — Controlled active tab value.

hijos: Element

Ver código fuente

TabsContentPropsinterfaz

Props for a tab content panel.

Propiedades

class?
string
style?
string | CSSProperties
value
string — Value identifying this panel. Must match a Trigger's value.

hijos: Element

Ver código fuente

TabsListPropsinterfaz

Props for the tab list container.

Propiedades

class?
string
ref?
(el: HTMLDivElement) => void

hijos: Element

Ver código fuente

TabsReasontipo

Reason for a tab value change.

Ver código fuente

TabsRootPropsinterfaz

Props for the tabs root container.

Propiedades

activationMode?
ActivationMode — Activation mode: "automatic" (default) activates on focus, "manual" on Enter/Space.
defaultValue?
string — Default active tab for uncontrolled mode.
onValueChange?
(value: string, details: ChangeDetails<TabsReason>) => void — Called when active tab changes.
orientation?
"horizontal" | "vertical" — Orientation: "horizontal" (default) or "vertical".
value?
Accessor<string> — Controlled active tab value.

hijos: Element

Ver código fuente

TabsTriggerPropsinterfaz

Props for an individual tab trigger button.

Propiedades

disabled?
boolean — Whether this tab trigger is disabled.
ref?
(el: HTMLButtonElement) => void
value
string — Value identifying this tab. Must match a Content's value.

hijos: Element

Ver código fuente

Triggercomponente

@solidiom/tabs — Headless tabs primitive with keyboard navigation and roving focus. Parts: Root, List, Trigger, Content.

                        Trigger(props: TabsTriggerProps): Element
                      

Propiedades

disabled?
boolean — Whether this tab trigger is disabled.
ref?
(el: HTMLButtonElement) => void
value
string — Value identifying this tab. Must match a Content's value.

hijos: Element

Ver código fuente