About
A headless, render-prop based tabbed interface with arrow-key navigation and full ARIA support for switching between content panels.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds MCP Tabs to your project and fits it to your theme.
Code
How MCP Tabs is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";
const tabItems = [
{ value: "account" },
{ value: "password" },
{ value: "settings" },
];
export default function TabsDemo() {
return (
<Tabs items={tabItems} defaultValue="account" className="w-full max-w-md">
{(api) => (
<>
<TabsList>
<TabsTrigger
isActive={api.value === "account"}
onClick={() => api.setValue("account")}
>
Account
</TabsTrigger>
<TabsTrigger
isActive={api.value === "password"}
onClick={() => api.setValue("password")}
>
Password
</TabsTrigger>
<TabsTrigger
isActive={api.value === "settings"}
onClick={() => api.setValue("settings")}
>
Settings
</TabsTrigger>
</TabsList>
{api.value === "account" && (
<TabsContent>
<p className="text-sm text-muted-foreground">
Manage your account settings and preferences.
</p>
</TabsContent>
)}
{api.value === "password" && (
<TabsContent>
<p className="text-sm text-muted-foreground">
Change your password and security options.
</p>
</TabsContent>
)}
{api.value === "settings" && (
<TabsContent>
<p className="text-sm text-muted-foreground">
Configure notifications and display preferences.
</p>
</TabsContent>
)}
</>
)}
</Tabs>
);
}
















![Form [react-aria-components]](https://cdn.21st.dev/cdn-cgi/image/fit=scale-down,width=640,quality=75,format=webp/https://cdn.21st.dev/user_jolbol1/field/814/preview.png)