Tabs

Group related content — typically code samples in different languages — behind a tab switcher.

Usage

const users = await fetch('/api/users').then((r) => r.json())
import requests
users = requests.get('/api/users').json()
curl https://api.example.com/users

Props

<Tabs>

Prop Type Description
default string Title of the tab to open by default. Matches case-insensitively. First tab if omitted.

<Tab>

Prop Type Description
title string Tab label.