Skip to content
duxt

Tab

One panel of a tab group.

One panel inside ::tab-group. It has no meaning on its own.

Usage

:::tab-group
  ::tab{label="pnpm"}
  The layer is a dev dependency.
  ::
:::

API

Props

PropTypeDefaultNotes
labelstringThe text on the tab's trigger

Slots

SlotWhat goes in it
defaultThe panel, as Markdown

Notes

The component registers its own label with the parent on setup, which is what lets the list of triggers be built from children MDC has not rendered yet.

Was this page helpful?