Tabs
Tabs whose highlight travels to the picked tab, as a pill or as an underline.
Examples
12 open issues, 3 of them due this week.
Default
A pill travels to the picked tab, and each label changes colour as the pill crosses it. A backdrop follows the pointer.
12 open issues, 3 of them due this week.
Underline
With variant set to line, an underline travels in place of the pill.
Workspace name, logo and time zone.
Vertical
The list stands beside its content, and the up and down arrows move along it.
9,112visitors in the last 7 days
Sharing the width
Give the list w-full and each trigger flex-1.
42 issues, sorted by priority.
Icons
An icon sits before or after the label.
42 issues, sorted by priority.
Icon only
A tab with only an icon needs an aria-label and a square shape.
$24 per seat, billed every month.
Disabled
A disabled tab fades, and the arrow keys still reach it.
January: 12 invoices sent.
More tabs than fit
A list wider than its column scrolls. An edge fades while tabs are hidden past it.
Installation
npx shadcn@latest add https://kinoui.com/r/tabs.json- Files
lib/reduce-motion.tslib/resize.tslib/run-progress.tslib/highlight.tslib/pill.tslib/scroll.tscomponents/kino/tabs.tsx- Packages
@base-ui/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Tabs
TabsList
TabsTrigger
TabsContent
Data attributes
CSS variables
Accessibility
- Arrow keys move focus along the tabs, and Enter or Space picks the focused one.
- Name the list with
aria-labelonTabsList. - In the default variant the pill holds a second copy of the list, so a label can be two colours at once. The copy is inert and hidden from screen readers. Keep an
id, or anything with an effect, out of the children ofTabsList, or it exists twice. - When the system asks for less motion, the highlight, the backdrop and the scroll jump to their place, and content appears without rising.