Client control

Tabs API

Tabs is a client-only primitive for switching related panels while keeping markup small and predictable.

Preview

Preview panel

Tabs switch compact content without leaving the page.

Import

import { TabList, TabPanel, Tabs, TabTrigger } from "@axonyx/react/client";

Props

PropTypeDefaultDescription
defaultValuestringrequiredPanel value selected on first render.
valuestringrequired on TabTrigger and TabPanelStable value that connects trigger and panel.
childrenReactNoderequiredTab list, triggers, and panels.

CSS contract

.ax-tabs
.ax-tabs__list
.ax-tabs__trigger
.ax-tab__panel
[data-active]
Client island

Import Tabs from the client entry so the default server-safe package stays lightweight.