docs/components/navigation/TabBar

TabBar

Horizontal tab bar with icons.

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

#Playground

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

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
tabs *TabBarTab[]
activeIdstring
onSelect(id: string) => void
onClose(id: string) => void
onAdd() => void
classstring

* 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-bg-active
  • --sk-bg-hover
  • --sk-bg-primary
  • --sk-border
  • --sk-font-sm
  • --sk-radius-sm
  • --sk-space-md
  • --sk-space-xs
  • --sk-tabbar-action-w
  • --sk-tabbar-h
  • --sk-tabbar-tab-max-w
  • --sk-text-muted
  • --sk-text-primary
  • --sk-transition-fast
  • --sk-z-base