GitHub

Tabs

A set of layered sections of content—known as tab panels—that are displayed one at a time.

Docs

Account

Make changes to your account here. Click save when you're done.

Installation

npx solidui-cli@latest add tabs

Usage

import { Tabs, TabsContent, TabsList, TabsTrigger } from "~/components/ui/tabs"
<Tabs defaultValue="account" class="w-[400px]">
  <TabsList class="grid w-full grid-cols-2">
    <TabsTrigger value="account">Account</TabsTrigger>
    <TabsTrigger value="password">Password</TabsTrigger>
  </TabsList>
  <TabsContent value="account">Account Tab</TabsContent>
  <TabsContent value="password">Password Tab</TabsContent>
</Tabs>