# Tabs

Switches between views of the same content.

Import from `@a31labs/rax/tabs`.

## Usage

```tsx
<Tabs value={tab} onValueChange={setTab} items={[{ value: "overview", label: "Overview" }, { value: "logs", label: "Logs" }]}>
  <TabPanel value="overview">…</TabPanel>
  <TabPanel value="logs">…</TabPanel>
</Tabs>
```

## Rules

Props: `value`, `onValueChange`, `items` (`{ value, label, attrs }`), children (`TabPanel value=...`). For switching views of content. Underline style: items `h-ctl` high, hover surface-2, selected item ink text, weight 600 and a 3px bar in `--rax-focus` on the 1px `line` baseline.

Page: https://rax.a31.at/components/tabs
