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

switch-demo.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  b5d9ca5a_5b1c_977c_877f_f8ae0f5a784b["switch-demo.tsx"]
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  b5d9ca5a_5b1c_977c_877f_f8ae0f5a784b --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  792bdb4b_081b_acca_8721_dff659e00c59["switch"]
  b5d9ca5a_5b1c_977c_877f_f8ae0f5a784b --> 792bdb4b_081b_acca_8721_dff659e00c59
  style b5d9ca5a_5b1c_977c_877f_f8ae0f5a784b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Label } from "@/registry/new-york/ui/label"
import { Switch } from "@/registry/new-york/ui/switch"

export default function SwitchDemo() {
  return (
    <div className="flex items-center space-x-2">
      <Switch id="airplane-mode" />
      <Label htmlFor="airplane-mode">Airplane Mode</Label>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • label
  • switch

Frequently Asked Questions

What does switch-demo.tsx do?
switch-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 switch-demo.tsx?
switch-demo.tsx defines 1 function(s): SwitchDemo.
What does switch-demo.tsx depend on?
switch-demo.tsx imports 2 module(s): label, switch.
Where is switch-demo.tsx in the architecture?
switch-demo.tsx is located at deprecated/www/registry/new-york/examples/switch-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