Skip to content

Tabs

Open .md
Live preview

Loading example…

To sync the active tab with a search param, use Radix’s controlled pattern: value={param} + onValueChange={(v) => updateParam(v)}.

import { Tabs } from "@jcsoftdev/ui/navigation";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/navigation/tabs.

export const Default: Story = {};

Source of the Storybook story.

This component declares no props of its own.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/navigation/tabs/tabs.tsx