Loading component…
In applications
- Used in blocks
- Dashboard tabs
Loading component…
What automated tests prove about each implementation — separate from whether the package itself is a finished product. Derived from the test files; how the levels are earned.
React
React setupPackage maturity: stable · Implementation verification: Beta
Angular
Angular setup · previewPackage maturity: preview · Implementation verification: Preview
SwiftUI
SwiftUI setupPackage maturity: stable · Implementation verification: Experimental
Jetpack Compose
Jetpack Compose setupPackage maturity: stable · Implementation verification: Beta
Flutter
Flutter setupPackage maturity: stable · Implementation verification: Beta
This platform’s whole catalogue is verified to React beta, Angular preview, SwiftUI experimental, Jetpack Compose experimental, Flutter experimental. The catalogue figure is the weakest component on that platform, not an average.
npx @kinetixui/cli add tabsnpm i @kinetixui/ui @kinetixui/tokens@kinetixui/ui on npm@kinetixui/tokens on npmThe CLI copies React source. Usage imports from @kinetixui/ui require the npm package; for copied source, use your configured local import instead.
npm i @kinetixui/angular @kinetixui/tokens@kinetixui/angular on npm@kinetixui/tokens on npmSource only, not on Swift Package Manager yet: use a repository checkout pinned to a commit.
Source only, not on Maven Central yet: use a repository checkout pinned to a commit.
Source only, not on pub.dev yet: use a repository checkout pinned to a commit.
Tabs show one panel of related content at a time, switched from a row of triggers, so a page can hold several views without scrolling.
Reduced motion: off · your browser setting
Keyboard tests check one tab stop for the whole row, arrow keys that move and select, Home and End, and arrow directions that mirror in right-to-left layouts. Evidence for Tabs on each platform is in the Platforms row above.
Use Tabs for peer content sections. The default treatment is text-first line tabs: a subtle base rail,
a foreground active indicator, stable font weight, and a list that scrolls at narrow widths or large text.
Focus stays visible inside the scroll area, direction follows dir, and color transitions respect reduced motion.
Use SegmentedControl for local modes such as Preview/Code, PillSelector for compact options, and ToggleGroup for grouped actions.
Install the package the usage below imports from:
npm install @kinetixui/ui @kinetixui/tokensThe project also needs Tailwind CSS 3 and the KinetixUI preset; see Installation. To own the source instead, copy it into your project with the CLI and import from the folder it writes to:
npx @kinetixui/cli add tabsimport { Tabs, TabsList, TabsTrigger, TabsContent } from "@kinetixui/ui";Styled from the KinetixUI token contract, in light and dark, with no extra configuration. Keyboard and ARIA behaviour comes from Radix Tabs; see Accessibility.
The props of @kinetixui/ui, generated from its TypeScript. Props inherited from the underlying DOM element (className, id, event handlers) are accepted too and are not listed.
This table is React-specific. The SwiftUI, Jetpack Compose, Flutter and Angular implementations share the design contract — the same variants, sizes, states and tokens — but each exposes its own idiomatic interface. Their real usage is in the platform tabs on the example above, not here.
| Prop | Type | Notes |
|---|---|---|
| motion | TabsMotionThe indicator's selection effect. Defaults to `classic`, which is the behaviour before this prop existed. | The indicator's selection effect. Defaults to `classic`, which is the behaviour before this prop existed. |
3 behaviours asserted on every commit by packages/ui/src/components-keyboard.test.tsx. Listed because they are tested, not the other way round — if one stops being tested it stops appearing here.
is a single tab stop; ArrowRight moves to and selects the next tab
supports Home and End
mirrors the arrow keys under RTL