Umbra UI

Tabs

Switches between panels of related content.

Staticimport { Tabs } from 'umbra-ui'

Props

PropTypeDefaultDescription
size "sm" | "md"mdTrigger 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 / tabpanel roles. ←/→ (or ↑/↓ when vertical) move and activate; Home/End jump.
  • Tab moves from the active trigger into the panel, which is focusable.
  • Give TabsList an aria-label.

Import

import { Tabs } from 'umbra-ui';
import 'umbra-ui/styles.css'; // once, at the root of your app