Saltar al contenido
El Muestrario

componente · @solu30/ui-kit/navigation

DetailSheetTabs

El componente, montado

Cargando el componente del paquete instalado…

Cargando el chunk del paquete instalado…

De dónde se importa

import { DetailSheetTabs } from '@solu30/ui-kit/navigation'

Props

8 props declaradas en los tipos de la versión instalada.
PropRequeridaTipoQué hace
tabsArray<TabItem$1 & {
keyT
activeTabT
onTabChange(tab: T) => void
childrenReactNode
barBackgroundClassNameopcionalstringBackground of the sticky tab bar. MUST be opaque and match the real background of the panel wrapping this component — a mismatch shows the bar as a floating band detached from the content while scrolling. Default `'bg-container'` (the background of `@cmp/ui-kit`'s `<Sheet>`).
scrollContainerRefopcionalRefObject<HTMLElement | null>Explicit scroll container to reset on tab change. When omitted, walks up from the root looking for the nearest ancestor with `overflow-y: auto` or `scroll` (covers `<Sheet>` without any internal-className coupling). Pass this when the host has no such ancestor (e.g. a custom overlay).
divideropcionalbooleanPass-through to `Tabs`: `false` removes the full-width baseline under the tab list (the animated per-tab indicator stays). Default `true`.

Ejemplo del paquete

<Sheet open={open} onOpenChange={setOpen}>
<DetailSheetTabs tabs={tabs} activeTab={tab} onTabChange={setTab}>
{tab === "info" ? <InfoPanel /> : <HistoryPanel />}
</DetailSheetTabs>
</Sheet>

Del @example del JSDoc de @solu30/ui-kit, sin editar. Cuatro de los 69 ejemplos del paquete traen pegada la firma cruda del .d.ts —el mismo defecto del extractor que se come las descripciones—, y por eso la caja tiene tope de alto: el ejemplo de verdad suele estar al final.