Get Pro Access

Tabs

Tab navigation with keyboard support and ARIA attributes

Installation

Usage

import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs'

<Tabs defaultValue='overview'>
  <TabsList>
    <TabsTrigger value='overview'>Overview</TabsTrigger>
    <TabsTrigger value='billing'>Billing</TabsTrigger>
  </TabsList>
  <TabsContent value='overview'>Overview content</TabsContent>
  <TabsContent value='billing'>Billing content</TabsContent>
</Tabs>

Interactivity

This component is SSR-first and works without client JavaScript. Add @kiwa-ui/enhance for interactive behavior like toggling, keyboard navigation, and ARIA state management.

Add to your layout

<script type="module">
  import { tabs } from '@kiwa-ui/enhance'
  tabs()
</script>