WritedocsWritedocs

Tabs and Tab

npm install writedocs
pnpm add writedocs
yarn add writedocs
<Tabs>
  <Tab title="npm">
    ```bash
    npm install writedocs
    ```
  </Tab>
  <Tab title="pnpm">
    ```bash
    pnpm add writedocs
    ```
  </Tab>
</Tabs>

Tab props

titlestringrequired

The label shown on its clickable pill.

iconstring

Shown before the title on the tab’s pill. Any icon string, see Icons.

Tabs props

defaultTabIndexnumberdefault: 0

Which tab is selected when the page loads, counting from 0.