checkbox-demo.tsx — ui Source File
Architecture documentation for checkbox-demo.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR bd3772fc_ead3_7254_eb76_8c9225190c34["checkbox-demo.tsx"] 701738bf_cdcf_955d_1e15_8125ef50e18b["checkbox"] bd3772fc_ead3_7254_eb76_8c9225190c34 --> 701738bf_cdcf_955d_1e15_8125ef50e18b e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"] bd3772fc_ead3_7254_eb76_8c9225190c34 --> e6c524b5_d047_d4f9_50b2_7f100d612cb2 e632ae84_c5fb_40c9_7b9d_82d10e757faf["label"] bd3772fc_ead3_7254_eb76_8c9225190c34 --> e632ae84_c5fb_40c9_7b9d_82d10e757faf style bd3772fc_ead3_7254_eb76_8c9225190c34 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { Checkbox } from "@/examples/base/ui/checkbox"
import {
Field,
FieldContent,
FieldDescription,
FieldGroup,
FieldLabel,
FieldTitle,
} from "@/examples/base/ui/field"
import { Label } from "@/examples/base/ui/label"
export default function CheckboxDemo() {
return (
<FieldGroup className="max-w-sm">
<Field orientation="horizontal">
<Checkbox id="terms-checkbox" name="terms-checkbox" />
<Label htmlFor="terms-checkbox">Accept terms and conditions</Label>
</Field>
<Field orientation="horizontal">
<Checkbox
id="terms-checkbox-2"
name="terms-checkbox-2"
defaultChecked
/>
<FieldContent>
<FieldLabel htmlFor="terms-checkbox-2">
Accept terms and conditions
</FieldLabel>
<FieldDescription>
By clicking this checkbox, you agree to the terms.
</FieldDescription>
</FieldContent>
</Field>
<Field orientation="horizontal" data-disabled>
<Checkbox id="toggle-checkbox" name="toggle-checkbox" disabled />
<FieldLabel htmlFor="toggle-checkbox">Enable notifications</FieldLabel>
</Field>
<FieldLabel>
<Field orientation="horizontal">
<Checkbox id="toggle-checkbox-2" name="toggle-checkbox-2" />
<FieldContent>
<FieldTitle>Enable notifications</FieldTitle>
<FieldDescription>
You can enable or disable notifications at any time.
</FieldDescription>
</FieldContent>
</Field>
</FieldLabel>
</FieldGroup>
)
}
Domain
Subdomains
Functions
Dependencies
- checkbox
- field
- 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, ContentSourcing 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 3 module(s): checkbox, field, label.
Where is checkbox-demo.tsx in the architecture?
checkbox-demo.tsx is located at apps/v4/examples/base/checkbox-demo.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