Skip to content

Components

Tabs

Switch between panels in place, with an underline or a glowing pill that slides to the active tab. To go to another page, use Pills.

Spending for September.

Import

import { Tabs, TabList, Tab, TabPanel } from '@rinzai/zen';

Examples

Every entry this month.

Panels

The last panel slides out as the picked one slides in, and the space between eases to fit.

$1,845.11

Spent this month, $210 less than last.

API reference

<Tabs>

Tab set with an underline that slides to the active tab. Controlled (value) or not (defaultValue).

PropTypeDefault
defaultValue
string
onValueChange
((value: string) => void)—
value
string—

<TabList>

The row of tabs. underline (default): in-page tabs, a bar sliding under the active tab. pills: the Pills look, a glowing pill sliding along a glass track (for navigation between pages, use Pills itself).

PropTypeDefault
variant
TabListVariantunderline

<Tab>

PropTypeDefault
valueRequired
string—

<TabPanel>

PropTypeDefault
valueRequired
string—