tabs-demo.tsx — ui Source File
Architecture documentation for tabs-demo.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 0821659c_d924_b02a_8a62_1470fed44400["tabs-demo.tsx"] d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"] 0821659c_d924_b02a_8a62_1470fed44400 --> d418ad18_b947_f4e5_6e4c_01100d7a63e4 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31["card"] 0821659c_d924_b02a_8a62_1470fed44400 --> 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31 163b5f6f_1cd3_6d8d_5305_80eec4895f60["input"] 0821659c_d924_b02a_8a62_1470fed44400 --> 163b5f6f_1cd3_6d8d_5305_80eec4895f60 f826d306_7d63_5ba3_6a53_387904d37a9f["label"] 0821659c_d924_b02a_8a62_1470fed44400 --> f826d306_7d63_5ba3_6a53_387904d37a9f 699f76b5_9b45_8d21_7fd0_f3e642c5c848["tabs"] 0821659c_d924_b02a_8a62_1470fed44400 --> 699f76b5_9b45_8d21_7fd0_f3e642c5c848 style 0821659c_d924_b02a_8a62_1470fed44400 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/registry/default/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/default/ui/card"
import { Input } from "@/registry/default/ui/input"
import { Label } from "@/registry/default/ui/label"
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
} from "@/registry/default/ui/tabs"
export function TabsDemo() {
return (
<Tabs defaultValue="account" className="w-[400px]">
<TabsList className="grid w-full grid-cols-2">
<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="space-y-2">
<div className="space-y-1">
<Label htmlFor="name">Name</Label>
<Input id="name" defaultValue="Pedro Duarte" />
</div>
<div className="space-y-1">
<Label htmlFor="username">Username</Label>
<Input id="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="space-y-2">
<div className="space-y-1">
<Label htmlFor="current">Current password</Label>
<Input id="current" type="password" />
</div>
<div className="space-y-1">
<Label htmlFor="new">New password</Label>
<Input id="new" type="password" />
</div>
</CardContent>
<CardFooter>
<Button>Save password</Button>
</CardFooter>
</Card>
</TabsContent>
</Tabs>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- card
- input
- label
- tabs
Source
Frequently Asked Questions
What does tabs-demo.tsx do?
tabs-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in tabs-demo.tsx?
tabs-demo.tsx defines 1 function(s): TabsDemo.
What does tabs-demo.tsx depend on?
tabs-demo.tsx imports 5 module(s): button, card, input, label, tabs.
Where is tabs-demo.tsx in the architecture?
tabs-demo.tsx is located at deprecated/www/registry/default/internal/sink/components/tabs-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/internal/sink/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free