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. 6 imports, 1 dependents.

File tsx DocumentationAtlas Changelog 6 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  7252cdd4_a97a_5f1b_6102_8cdc490b8fc7["tabs-demo.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  7252cdd4_a97a_5f1b_6102_8cdc490b8fc7 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  7252cdd4_a97a_5f1b_6102_8cdc490b8fc7 --> 57e86e45_ac6e_7278_be08_9092724e8401
  c6d6139d_ea69_3d79_5004_68419bae2ac0["card"]
  7252cdd4_a97a_5f1b_6102_8cdc490b8fc7 --> c6d6139d_ea69_3d79_5004_68419bae2ac0
  80cf663d_a411_487c_d69e_ac9d405cd2ec["input"]
  7252cdd4_a97a_5f1b_6102_8cdc490b8fc7 --> 80cf663d_a411_487c_d69e_ac9d405cd2ec
  d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"]
  7252cdd4_a97a_5f1b_6102_8cdc490b8fc7 --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d
  ceb41313_de2c_98d6_0449_ab5301fbc3d3["tabs"]
  7252cdd4_a97a_5f1b_6102_8cdc490b8fc7 --> ceb41313_de2c_98d6_0449_ab5301fbc3d3
  1c2403dc_4584_9f39_4e98_855a7de18bd1["component-registry.ts"]
  1c2403dc_4584_9f39_4e98_855a7de18bd1 --> 7252cdd4_a97a_5f1b_6102_8cdc490b8fc7
  style 7252cdd4_a97a_5f1b_6102_8cdc490b8fc7 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 function TabsDemo() {
  return (
    <div className="flex w-full max-w-sm flex-col gap-6">
      <Tabs defaultValue="account">
        <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&apos;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&apos;ll be logged
                out.
              </CardDescription>
// ... (86 more lines)

Subdomains

Functions

Dependencies

  • button
  • card
  • input
  • label
  • lucide-react
  • 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 DocumentationAtlas domain, Changelog 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.
What files import tabs-demo.tsx?
tabs-demo.tsx is imported by 1 file(s): component-registry.ts.
Where is tabs-demo.tsx in the architecture?
tabs-demo.tsx is located at apps/v4/app/(internal)/sink/components/tabs-demo.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(internal)/sink/components).

Analyze Your Own Codebase

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

Try Supermodel Free