docs/components/navigation/Tabs

Tabs

Horizontal tabbed content.

import { Tabs } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
items *TabItem[]Array of tab items.
valuestringControlled active tab value.
onChange(value: string) => voidCallback when active tab changes.
orientation'horizontal' | 'vertical''horizontal'Tab orientation.
classstringAdditional CSS classes.

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-accent
  • --sk-border
  • --sk-duration-fast
  • --sk-font-size-base
  • --sk-radius-md
  • --sk-space-md
  • --sk-space-sm
  • --sk-space-xs
  • --sk-text-muted
  • --sk-text-primary