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.
Entity Profile
Dependency Diagram
graph LR c8b927a2_57b0_f725_1a9a_7a751985472c["switch-choice-card.tsx"] b5f68436_cf6b_fba3_fb29_abf27fd13442["field"] c8b927a2_57b0_f725_1a9a_7a751985472c --> b5f68436_cf6b_fba3_fb29_abf27fd13442 098564c8_4bac_7383_9c85_e180c474572e["switch"] c8b927a2_57b0_f725_1a9a_7a751985472c --> 098564c8_4bac_7383_9c85_e180c474572e style c8b927a2_57b0_f725_1a9a_7a751985472c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Field,
FieldContent,
FieldDescription,
FieldGroup,
FieldLabel,
FieldTitle,
} from "@/examples/radix/ui/field"
import { Switch } from "@/examples/radix/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>
)
}
Domain
Subdomains
Functions
Dependencies
- field
- switch
Source
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/radix/switch-choice-card.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free