Home / File/ switch-choice-card.tsx — ui Source File

switch-choice-card.tsx — ui Source File

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

File tsx DocumentationAtlas SearchAPI 2 imports 1 functions

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

export function SwitchChoiceCard() {
  return (
    <FieldGroup className="w-full max-w-sm">
      <FieldLabel htmlFor="switch-share">
        <Field orientation="horizontal">
          <FieldContent>
            <FieldTitle>Share across devices</FieldTitle>
            <FieldDescription>
              Focus is shared across devices, and turns off when you leave the
              app.
            </FieldDescription>
          </FieldContent>
          <Switch id="switch-share" />
        </Field>
      </FieldLabel>
      <FieldLabel htmlFor="switch-notifications">
        <Field orientation="horizontal">
          <FieldContent>
            <FieldTitle>Enable notifications</FieldTitle>
            <FieldDescription>
              Receive notifications when focus mode is enabled or disabled.
            </FieldDescription>
          </FieldContent>
          <Switch id="switch-notifications" defaultChecked />
        </Field>
      </FieldLabel>
    </FieldGroup>
  )
}

Subdomains

Functions

Dependencies

  • field
  • switch

Frequently Asked Questions

What does switch-choice-card.tsx do?
switch-choice-card.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in switch-choice-card.tsx?
switch-choice-card.tsx defines 1 function(s): SwitchChoiceCard.
What does switch-choice-card.tsx depend on?
switch-choice-card.tsx imports 2 module(s): field, switch.
Where is switch-choice-card.tsx in the architecture?
switch-choice-card.tsx is located at apps/v4/examples/base/switch-choice-card.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, 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