TabsDemo() — supabase Function Reference
Architecture documentation for the TabsDemo() function in tabs-demo.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/design-system/registry/default/example/tabs-demo.tsx lines 17–72
export default function TabsDemo() {
return (
<Tabs_Shadcn_ defaultValue="account" className="w-[400px]">
<TabsList_Shadcn_ className="grid w-full grid-cols-2">
<TabsTrigger_Shadcn_ value="account">Account</TabsTrigger_Shadcn_>
<TabsTrigger_Shadcn_ value="password">Password</TabsTrigger_Shadcn_>
</TabsList_Shadcn_>
<TabsContent_Shadcn_ value="account">
<Card>
<CardHeader>
<CardTitle>Account</CardTitle>
<CardDescription>
Make changes to your account here. Click save when you are done.
</CardDescription>
</CardHeader>
<CardContent className="space-y-2">
<div className="space-y-1">
<Label_Shadcn_ htmlFor="name">Name</Label_Shadcn_>
<Input_Shadcn_ id="name" defaultValue="Pedro Duarte" />
</div>
<div className="space-y-1">
<Label_Shadcn_ htmlFor="username">Username</Label_Shadcn_>
<Input_Shadcn_ id="username" defaultValue="@peduarte" />
</div>
</CardContent>
<CardFooter>
<Button>Save changes</Button>
</CardFooter>
</Card>
</TabsContent_Shadcn_>
<TabsContent_Shadcn_ value="password">
<Card>
<CardHeader>
<CardTitle>Password</CardTitle>
<CardDescription>
Change your password here. After saving, you will be logged out.
</CardDescription>
</CardHeader>
<CardContent className="space-y-2">
<div className="space-y-1">
<Label_Shadcn_ htmlFor="current">Current password</Label_Shadcn_>
<Input_Shadcn_ id="current" type="password" />
</div>
<div className="space-y-1">
<Label_Shadcn_ htmlFor="new">New password</Label_Shadcn_>
<Input_Shadcn_ id="new" type="password" />
</div>
</CardContent>
<CardFooter>
<Button>Save password</Button>
</CardFooter>
</Card>
</TabsContent_Shadcn_>
</Tabs_Shadcn_>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free