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
| Prop | Type | Default | Notes |
|---|---|---|---|
label | string | — | The text on the tab's trigger |
Slots
| Slot | What goes in it |
|---|---|
default | The 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?