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 df15f5ad_a2b6_1f4e_850a_80bae24b427a["tabs-demo.tsx"] aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] df15f5ad_a2b6_1f4e_850a_80bae24b427a --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 95a7752f_4b97_5bde_5d7d_fca03536ac35["card"] df15f5ad_a2b6_1f4e_850a_80bae24b427a --> 95a7752f_4b97_5bde_5d7d_fca03536ac35 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"] df15f5ad_a2b6_1f4e_850a_80bae24b427a --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107 fa665cdb_5f79_b81a_95ab_12ba182fc175["label"] df15f5ad_a2b6_1f4e_850a_80bae24b427a --> fa665cdb_5f79_b81a_95ab_12ba182fc175 ff4adc50_4c10_539a_2d63_f3d4b2f1ec61["tabs"] df15f5ad_a2b6_1f4e_850a_80bae24b427a --> ff4adc50_4c10_539a_2d63_f3d4b2f1ec61 style df15f5ad_a2b6_1f4e_850a_80bae24b427a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/registry/new-york/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/new-york/ui/card"
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/ui/label"
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
} from "@/registry/new-york/ui/tabs"
export default 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/new-york/examples/tabs-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free