checkbox-demo.tsx — ui Source File
Architecture documentation for checkbox-demo.tsx, a tsx file in the ui codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 8594bf5f_af4a_b9fb_fbd1_79b3427137df["checkbox-demo.tsx"] 4f6bcac7_12b3_b724_9762_64ace071aa20["checkbox"] 8594bf5f_af4a_b9fb_fbd1_79b3427137df --> 4f6bcac7_12b3_b724_9762_64ace071aa20 d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"] 8594bf5f_af4a_b9fb_fbd1_79b3427137df --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d 1c2403dc_4584_9f39_4e98_855a7de18bd1["component-registry.ts"] 1c2403dc_4584_9f39_4e98_855a7de18bd1 --> 8594bf5f_af4a_b9fb_fbd1_79b3427137df style 8594bf5f_af4a_b9fb_fbd1_79b3427137df fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { Checkbox } from "@/registry/new-york-v4/ui/checkbox"
import { Label } from "@/registry/new-york-v4/ui/label"
export function CheckboxDemo() {
return (
<div className="flex flex-col gap-6">
<div className="flex items-center gap-3">
<Checkbox id="terms" />
<Label htmlFor="terms">Accept terms and conditions</Label>
</div>
<div className="flex items-start gap-3">
<Checkbox id="terms-2" defaultChecked />
<div className="grid gap-2">
<Label htmlFor="terms-2">Accept terms and conditions</Label>
<p className="text-muted-foreground text-sm">
By clicking this checkbox, you agree to the terms and conditions.
</p>
</div>
</div>
<div className="flex items-start gap-3">
<Checkbox id="toggle" disabled />
<Label htmlFor="toggle">Enable notifications</Label>
</div>
<Label className="hover:bg-accent/50 flex items-start gap-3 rounded-lg border p-3 has-[[aria-checked=true]]:border-blue-600 has-[[aria-checked=true]]:bg-blue-50 dark:has-[[aria-checked=true]]:border-blue-900 dark:has-[[aria-checked=true]]:bg-blue-950">
<Checkbox
id="toggle-2"
defaultChecked
className="data-[state=checked]:border-blue-600 data-[state=checked]:bg-blue-600 data-[state=checked]:text-white dark:data-[state=checked]:border-blue-700 dark:data-[state=checked]:bg-blue-700"
/>
<div className="grid gap-1.5 font-normal">
<p className="text-sm leading-none font-medium">
Enable notifications
</p>
<p className="text-muted-foreground text-sm">
You can enable or disable notifications at any time.
</p>
</div>
</Label>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- checkbox
- label
Source
Frequently Asked Questions
What does checkbox-demo.tsx do?
checkbox-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in checkbox-demo.tsx?
checkbox-demo.tsx defines 1 function(s): CheckboxDemo.
What does checkbox-demo.tsx depend on?
checkbox-demo.tsx imports 2 module(s): checkbox, label.
What files import checkbox-demo.tsx?
checkbox-demo.tsx is imported by 1 file(s): component-registry.ts.
Where is checkbox-demo.tsx in the architecture?
checkbox-demo.tsx is located at apps/v4/app/(internal)/sink/components/checkbox-demo.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(internal)/sink/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free