Tabs

Use Tabs for mutually exclusive examples, such as package managers, frameworks, or operating systems. Use CodeGroup instead when the only content in each tab is code.

Usage

<Tabs>
  <Tab title="npm">
    <Code lang="bash">npm install reallysimpledocs</Code>
  </Tab>
  <Tab title="pnpm">
    <Code lang="bash">pnpm add reallysimpledocs</Code>
  </Tab>
  <Tab title="yarn">
    <Code lang="bash">yarn add reallysimpledocs</Code>
  </Tab>
  <Tab title="bun">
    <Code lang="bash">bun add reallysimpledocs</Code>
  </Tab>
</Tabs>

Options

Tabs

PropTypeDefaultNotes
variantstringundefinedBasecoat tab variant, such as "line".
classstring""Extra classes applied to the tabs root.

Tab

PropTypeDefaultNotes
titlestringRequiredLabel shown in the tab trigger.

Examples

Default

npm install reallysimpledocs basecoat-css@beta tailwindcss

Line variant

Recommended

Let the integration wire routes and assets for the docs section.