tabs-demo.tsx — ui Source File
Architecture documentation for tabs-demo.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 90dcc938_b4b9_fcda_3e9c_1a485c0d2944["tabs-demo.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 90dcc938_b4b9_fcda_3e9c_1a485c0d2944 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 57e86e45_ac6e_7278_be08_9092724e8401["button"] 90dcc938_b4b9_fcda_3e9c_1a485c0d2944 --> 57e86e45_ac6e_7278_be08_9092724e8401 c6d6139d_ea69_3d79_5004_68419bae2ac0["card"] 90dcc938_b4b9_fcda_3e9c_1a485c0d2944 --> c6d6139d_ea69_3d79_5004_68419bae2ac0 80cf663d_a411_487c_d69e_ac9d405cd2ec["input"] 90dcc938_b4b9_fcda_3e9c_1a485c0d2944 --> 80cf663d_a411_487c_d69e_ac9d405cd2ec d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"] 90dcc938_b4b9_fcda_3e9c_1a485c0d2944 --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d ceb41313_de2c_98d6_0449_ab5301fbc3d3["tabs"] 90dcc938_b4b9_fcda_3e9c_1a485c0d2944 --> ceb41313_de2c_98d6_0449_ab5301fbc3d3 style 90dcc938_b4b9_fcda_3e9c_1a485c0d2944 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { AppWindowIcon, CodeIcon } from "lucide-react"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/new-york-v4/ui/card"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Label } from "@/registry/new-york-v4/ui/label"
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
} from "@/registry/new-york-v4/ui/tabs"
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
Functions
Dependencies
- button
- card
- input
- label
- lucide-react
- 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 6 module(s): button, card, input, label, lucide-react, tabs.
Where is tabs-demo.tsx in the architecture?
tabs-demo.tsx is located at apps/v4/registry/new-york-v4/examples/tabs-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free