Tabs
Switches between panels of related content.
Staticimport { Tabs } from 'umbra-ui'
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | "sm" | "md" | md | Trigger height. |
variant | "underline" | "pill" | underline | `underline` sits on a rule; `pill` is a segmented control. |
Usage notes
Built on Radix Tabs. For a sliding indicator see AnimatedTabs.
Accessibility
tablist/tab/tabpanelroles. ←/→ (or ↑/↓ when vertical) move and activate; Home/End jump.- Tab moves from the active trigger into the panel, which is focusable.
- Give
TabsListanaria-label.
Import
import { Tabs } from 'umbra-ui';
import 'umbra-ui/styles.css'; // once, at the root of your app