TabsDemo() — ui Function Reference
Architecture documentation for the TabsDemo() function in tabs-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 5dbf61c6_94f6_9321_fbd5_0c702c7172a3["TabsDemo()"] 90dcc938_b4b9_fcda_3e9c_1a485c0d2944["tabs-demo.tsx"] 5dbf61c6_94f6_9321_fbd5_0c702c7172a3 -->|defined in| 90dcc938_b4b9_fcda_3e9c_1a485c0d2944 style 5dbf61c6_94f6_9321_fbd5_0c702c7172a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/examples/tabs-demo.tsx lines 21–80
export default function TabsDemo() {
return (
<div className="flex w-full max-w-sm flex-col gap-6">
<Tabs defaultValue="account">
<TabsList>
<TabsTrigger value="account">Account</TabsTrigger>
<TabsTrigger value="password">Password</TabsTrigger>
</TabsList>
<TabsContent value="account">
<Card>
<CardHeader>
<CardTitle>Account</CardTitle>
<CardDescription>
Make changes to your account here. Click save when you're
done.
</CardDescription>
</CardHeader>
<CardContent className="grid gap-6">
<div className="grid gap-3">
<Label htmlFor="tabs-demo-name">Name</Label>
<Input id="tabs-demo-name" defaultValue="Pedro Duarte" />
</div>
<div className="grid gap-3">
<Label htmlFor="tabs-demo-username">Username</Label>
<Input id="tabs-demo-username" defaultValue="@peduarte" />
</div>
</CardContent>
<CardFooter>
<Button>Save changes</Button>
</CardFooter>
</Card>
</TabsContent>
<TabsContent value="password">
<Card>
<CardHeader>
<CardTitle>Password</CardTitle>
<CardDescription>
Change your password here. After saving, you'll be logged
out.
</CardDescription>
</CardHeader>
<CardContent className="grid gap-6">
<div className="grid gap-3">
<Label htmlFor="tabs-demo-current">Current password</Label>
<Input id="tabs-demo-current" type="password" />
</div>
<div className="grid gap-3">
<Label htmlFor="tabs-demo-new">New password</Label>
<Input id="tabs-demo-new" type="password" />
</div>
</CardContent>
<CardFooter>
<Button>Save password</Button>
</CardFooter>
</Card>
</TabsContent>
</Tabs>
</div>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does TabsDemo() do?
TabsDemo() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/tabs-demo.tsx.
Where is TabsDemo() defined?
TabsDemo() is defined in apps/v4/registry/new-york-v4/examples/tabs-demo.tsx at line 21.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free