About
An accessible compound tabs component with keyboard navigation (arrow keys, Home/End) for switching between horizontal or vertical content panels.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Tabs to your project and fits it to your theme.
Code
How Tabs is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Tabs from "@/components/ui/tabs";
export default function TabsDemo() {
return (
<Tabs defaultValue="overview">
<Tabs.List aria-label="Sections">
<Tabs.Tab value="overview">Overview</Tabs.Tab>
<Tabs.Tab value="activity">Activity</Tabs.Tab>
<Tabs.Tab value="settings">Settings</Tabs.Tab>
</Tabs.List>
<Tabs.Panel value="overview">Overview content</Tabs.Panel>
<Tabs.Panel value="activity">Activity content</Tabs.Panel>
<Tabs.Panel value="settings">Settings content</Tabs.Panel>
</Tabs>
);
}















