docs/components/chat-ai/SessionTabs

SessionTabs

Multi-session tab switcher.

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

Static examples

This component depends on app-level context (providers, services, or interactive setup) that does not fit the inline playground yet, so its examples are shown as static code.

#Props

PropTypeDefaultDescription
tabs *SessionTab[]
activeTabIdstring
onTabSelect(id: string) => void
onTabClose(id: string) => void
onNewTab() => 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-bg-primary
  • --sk-bg-secondary
  • --sk-bg-tertiary
  • --sk-border
  • --sk-border-subtle
  • --sk-duration-fast
  • --sk-duration-pulse
  • --sk-ease-in-out
  • --sk-error
  • --sk-font-size-base
  • --sk-radius-md
  • --sk-session-tabs-max-w
  • --sk-space-sm
  • --sk-space-xs
  • --sk-success
  • --sk-text-muted
  • --sk-text-primary
  • --sk-text-secondary