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

field-switch.tsx — ui Source File

Architecture documentation for field-switch.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
  c35228fe_a981_1543_ca1c_ea82eb20e8ca["field-switch.tsx"]
  169af77a_46c3_8fec_4801_f34a0f1a3471["field"]
  c35228fe_a981_1543_ca1c_ea82eb20e8ca --> 169af77a_46c3_8fec_4801_f34a0f1a3471
  38ebb3c2_9638_6c9d_8ced_a16ec1ff06c9["switch"]
  c35228fe_a981_1543_ca1c_ea82eb20e8ca --> 38ebb3c2_9638_6c9d_8ced_a16ec1ff06c9
  style c35228fe_a981_1543_ca1c_ea82eb20e8ca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Field,
  FieldContent,
  FieldDescription,
  FieldLabel,
} from "@/registry/new-york-v4/ui/field"
import { Switch } from "@/registry/new-york-v4/ui/switch"

export default function FieldSwitch() {
  return (
    <div className="w-full max-w-md">
      <Field orientation="horizontal">
        <FieldContent>
          <FieldLabel htmlFor="2fa">Multi-factor authentication</FieldLabel>
          <FieldDescription>
            Enable multi-factor authentication. If you do not have a two-factor
            device, you can use a one-time code sent to your email.
          </FieldDescription>
        </FieldContent>
        <Switch id="2fa" />
      </Field>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • field
  • switch

Frequently Asked Questions

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