Navigation
Tabs
Switches between views in the same context. Tabs is an underlined row, SubtleTabs is a compact pill group.
Group: Navigation. Exports: Tabs, SubtleTabs. shadcn/ui equivalent: Tabs (partial parity).
Usage
import { Tabs } from "./halaska-kit";
Tabs props
tabsarray:valueany: The controlled value.onChange(value) => void: Called with the new value.
SubtleTabs props
tabsarray:valueany: The controlled value.onChange(value) => void: Called with the new value.
Accessibility
- The row has the tablist role, and each tab is a native button with the tab role and aria-selected.
- Tab reaches the active tab only. Left and Right arrows, Home and End move to another tab and select it.
- There is no tabpanel. Give the panel you render its own role and label if you need one.
Known gaps
- Only the tab list is provided. You render the panel for the active value yourself.
- No disabled tabs.
- No vertical orientation.
- Tabs are plain strings, with no icons or badges.
Used in
canvas screen, Agent chat, Artifact
Halaska UI · Components · Patterns · Screens · Install