CheckboxDemo() — ui Function Reference
Architecture documentation for the CheckboxDemo() function in checkbox-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 5cfaf2f6_eb2e_58fb_17f5_2421eda99e43["CheckboxDemo()"] bd3772fc_ead3_7254_eb76_8c9225190c34["checkbox-demo.tsx"] 5cfaf2f6_eb2e_58fb_17f5_2421eda99e43 -->|defined in| bd3772fc_ead3_7254_eb76_8c9225190c34 style 5cfaf2f6_eb2e_58fb_17f5_2421eda99e43 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/checkbox-demo.tsx lines 14–53
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
Defined In
Source
Frequently Asked Questions
What does CheckboxDemo() do?
CheckboxDemo() is a function in the ui codebase, defined in apps/v4/examples/base/checkbox-demo.tsx.
Where is CheckboxDemo() defined?
CheckboxDemo() is defined in apps/v4/examples/base/checkbox-demo.tsx at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free