Home / Function/ TabsDemo() — ui Function Reference

TabsDemo() — ui Function Reference

Architecture documentation for the TabsDemo() function in tabs-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  3e7ee3eb_54db_dd2c_070b_706e68e024c2["TabsDemo()"]
  45b0c63e_d9da_a371_7884_0d030e0fc3a7["tabs-demo.tsx"]
  3e7ee3eb_54db_dd2c_070b_706e68e024c2 -->|defined in| 45b0c63e_d9da_a371_7884_0d030e0fc3a7
  style 3e7ee3eb_54db_dd2c_070b_706e68e024c2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/examples/tabs-demo.tsx lines 19–74

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>
  )
}

Subdomains

Frequently Asked Questions

What does TabsDemo() do?
TabsDemo() is a function in the ui codebase, defined in deprecated/www/registry/default/examples/tabs-demo.tsx.
Where is TabsDemo() defined?
TabsDemo() is defined in deprecated/www/registry/default/examples/tabs-demo.tsx at line 19.

Analyze Your Own Codebase

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

Try Supermodel Free