Tabs
Switches between views, with a slug that slides.
Project overview.
import { Tabs } from '@rajatweb/argent'
<Tabs
label="Project"
items={[
{ value: 'overview', label: 'Overview', content: <Overview /> },
{ value: 'activity', label: 'Activity', content: <Activity /> },
]}
/>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
items required | readonly TabItem[] | ||
label required | string | Accessible name of the tab list. | |
className | string | ||
defaultValue | string | ||
onValueChange | (value: string) => void | ||
value | string |
Accessibility
- Arrow keys move between tabs on the web.
Do
- Keep labels to one or two words.
Don’t
- Use tabs for steps in order.