Skip to content
✨ Publier v1 is live — a polished docs platform built for the open web.
On this page

TabsProps

The interface publier.primitives.TabsProps.

Overview

interface TabsProps

Properties

class

class?: string

Additional CSS classes on the outer container.

defaultIndex

defaultIndex?: number

Zero-based index of the tab shown on first paint. Defaults to 0.

labels

labels: string[]

Labels for each tab in order. The number of labels MUST equal the number of <TabPanel> children; the component renders one <button role="tab"> per label with matching aria-controls.

variant

variant?: "box" | "border" | "lift"

Visual variant of the tab list. Maps to daisyUI tabs-box|tabs-border| tabs-lift. Omit for the default underline style.