Skip to main content
  1. Docs
  2. Components
  3. Navigation

Tabs

Views of the same thing, one at a time. One Tab stop; the arrow keys move between them.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div role="tablist">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

Engineering, Finance and People
Orientation
Variant
application-page.tsx
import { Tab, Tabs, TabsList, TabsPanel } from "@qeetrix/react";

<Tabs defaultValue="users">
  <TabsList aria-label="Payroll portal">
    <Tab value="overview">Overview</Tab>
    <Tab value="users" badge={642}>Users</Tab>
    <Tab value="sign-in">Sign-in</Tab>
    <Tab value="credentials">Credentials</Tab>
  </TabsList>
  <TabsPanel value="users">…</TabsPanel>
</Tabs>

02

Views of one thing

One Tab stop: the arrow keys move and select, Home and End jump, and Tab goes on to the panel.

priya@acme.in · Engineering

03

Contained

variant="contained": a segmented strip, for a few views of one card or panel.

1,284 users

04

Icons and counts

icon, filled while selected (filledWhenSelected={false} keeps the outline); badge, a number formatted for the locale, or your own Badge.

Engineering, Finance and People

05

Vertical

orientation="vertical": the line and the bar on the start edge; Up and Down move.

Acme Pvt Ltd · Bengaluru

06

More than fit

The list scrolls sideways; it never wraps to a second row.

07

Slow panels

activateOnFocus={false}: the arrows only move focus, and Enter or Space selects. For panels that load slowly.

priya@acme.in · Engineering

08

Controlled

value and onValueChange: the view in your state, or in the address.

Address: /users/priya?tab=sessions
Next — TabsUsage