Home / File/ tabs-demo.tsx — ui Source File

tabs-demo.tsx — ui Source File

Architecture documentation for tabs-demo.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 5 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  bb596445_b51d_ea47_8b2b_4ed10cc46d66["tabs-demo.tsx"]
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  bb596445_b51d_ea47_8b2b_4ed10cc46d66 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  bb596445_b51d_ea47_8b2b_4ed10cc46d66 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"]
  bb596445_b51d_ea47_8b2b_4ed10cc46d66 --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  bb596445_b51d_ea47_8b2b_4ed10cc46d66 --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  ff4adc50_4c10_539a_2d63_f3d4b2f1ec61["tabs"]
  bb596445_b51d_ea47_8b2b_4ed10cc46d66 --> ff4adc50_4c10_539a_2d63_f3d4b2f1ec61
  style bb596445_b51d_ea47_8b2b_4ed10cc46d66 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 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>
  )
}

Subdomains

Functions

Dependencies

  • button
  • card
  • input
  • label
  • tabs

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/internal/sink/components/tabs-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/internal/sink/components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free