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 DocumentationAtlas ContentSourcing 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  8e2e90a7_4e4f_8ce0_a964_bfdec406b559["field-switch.tsx"]
  e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"]
  8e2e90a7_4e4f_8ce0_a964_bfdec406b559 --> e6c524b5_d047_d4f9_50b2_7f100d612cb2
  40f3be91_0c7c_f1ab_171b_122147c4d8a3["switch"]
  8e2e90a7_4e4f_8ce0_a964_bfdec406b559 --> 40f3be91_0c7c_f1ab_171b_122147c4d8a3
  style 8e2e90a7_4e4f_8ce0_a964_bfdec406b559 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Field, FieldLabel } from "@/examples/base/ui/field"
import { Switch } from "@/examples/base/ui/switch"

export default function FieldSwitch() {
  return (
    <Field orientation="horizontal" className="w-fit">
      <FieldLabel htmlFor="2fa">Multi-factor authentication</FieldLabel>
      <Switch id="2fa" />
    </Field>
  )
}

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 DocumentationAtlas domain, ContentSourcing 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/examples/base/field-switch.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free