Tabs
Group alternative content behind labeled tabs.
Group alternatives such as package managers, framework variants, or OS-specific
commands so the reader sees one at a time. Give each TabItem a label; Tabs builds the tab row from them, so there is nothing to keep in sync.
Usage
Leave blank lines around the content inside each TabItem so the markdown (code
fences, prose) is parsed. The first tab is selected by default; pass value on Tabs to start on a different one.
Synced tabs
Give related Tabs the same syncKey and they share one selection: pick pnpm in any block and every block with that key switches to pnpm, across the page
and the rest of the site. The choice is remembered across reloads. Use it for
package managers, runtimes, or any choice a reader makes once and keeps.
Try it. These two blocks share syncKey="demo-pm"; changing one moves the other:
API reference
Tabs
value string default first tabsyncKey string TabItem
label required string value string default label