preskok/ui

A tabs component with accessible tab navigation.

Installation

pnpm dlx @preskok-org/ui@latest add tabs

Usage

import { Tabs } from "@/registry/preskok/ui/preskok-ui/tabs"
 
export function TabsDemo() {
  return (
    <Tabs defaultSelectedKey="1" items={[{ id: "1", title: "Tab 1" }]}>
      {(item) => <div>{item.title}</div>}
    </Tabs>
  )
}