Tabs
Accessible tabs for related examples and documentation.
Choose your package manager
Wrap related examples in :::tabs. Each direct ### Title creates a tab;
its content continues until the next title or the closing :::.
The first enabled tab is selected initially. No import or plugin is required.
pnpm install
Write your own tabs
:::tabs
### pnpm
pnpm install
### npm
npm install
### yarn
yarn install
:::
Use the arrow keys to move between tabs and Enter or Space to select one. The icon-only copy button copies the selected panel as plain text, including complete code blocks. Each group maintains its own selection.
Combine with Markdown
Panels support paragraphs, lists, code blocks, Callouts and other RDX components.
Use #### or deeper headings for subsections inside a panel. Direct ###
headings are reserved for tab labels within the container.
Disable a tab
Add {disabled} after the tab title. The label stays visible and the tab cannot
be activated. The first enabled tab is selected automatically; each group must
have at least one enabled tab.
The marker works in both .md and .mdx files and is preserved by Copy this
page and View Markdown. To show {disabled} as part of the label instead,
write it as inline code or escape its opening brace: \{disabled}.
:::tabs
### pnpm
pnpm dev
### npm {disabled}
npm run dev
### yarn {disabled}
yarn dev
:::
pnpm dev