Vertical
Stack tabs beside their panel with vertical orientation. Arrow Up and Arrow Down move between tabs; use it for settings-style sections.
"use client"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
export function TabsVertical() {
return (
<div className="flex w-full flex-col gap-8">
<Tabs defaultValue="profile" orientation="vertical" className="w-full max-w-lg">
<TabsList>
<TabsTrigger value="profile">Profile</TabsTrigger>
<TabsTrigger value="security">Security</TabsTrigger>
<TabsTrigger value="notifications">Notifications</TabsTrigger>
</TabsList>
<TabsContent value="profile" className="text-paragraph-sm text-sub-600">
Your name, photo and the email address other members see.
</TabsContent>
<TabsContent value="security" className="text-paragraph-sm text-sub-600">
Password, two-step verification and active sessions.
</TabsContent>
<TabsContent value="notifications" className="text-paragraph-sm text-sub-600">
Which events send an email and which only appear in the app.
</TabsContent>
</Tabs>
</div>
)
}