CheckboxFields() — ui Function Reference
Architecture documentation for the CheckboxFields() function in field-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD e9fab6bd_687c_e46b_a35e_c8c744ea90f6["CheckboxFields()"] 88052f7e_baae_5fcd_95fe_0a964a30baa3["field-example.tsx"] e9fab6bd_687c_e46b_a35e_c8c744ea90f6 -->|defined in| 88052f7e_baae_5fcd_95fe_0a964a30baa3 style e9fab6bd_687c_e46b_a35e_c8c744ea90f6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/field-example.tsx lines 435–514
function CheckboxFields() {
return (
<Example title="Checkbox Fields">
<FieldGroup>
<Field orientation="horizontal">
<Checkbox id="checkbox-basic" defaultChecked />
<FieldLabel htmlFor="checkbox-basic" className="font-normal">
I agree to the terms and conditions
</FieldLabel>
</Field>
<Field orientation="horizontal">
<FieldLabel htmlFor="checkbox-right">
Accept terms and conditions
</FieldLabel>
<Checkbox id="checkbox-right" />
</Field>
<Field orientation="horizontal">
<Checkbox id="checkbox-with-desc" />
<FieldContent>
<FieldLabel htmlFor="checkbox-with-desc">
Subscribe to newsletter
</FieldLabel>
<FieldDescription>
Receive weekly updates about new features and promotions.
</FieldDescription>
</FieldContent>
</Field>
<FieldLabel htmlFor="checkbox-with-title">
<Field orientation="horizontal">
<Checkbox id="checkbox-with-title" />
<FieldContent>
<FieldTitle>Enable Touch ID</FieldTitle>
<FieldDescription>
Enable Touch ID to quickly unlock your device.
</FieldDescription>
</FieldContent>
</Field>
</FieldLabel>
<FieldSet>
<FieldLegend variant="label">Preferences</FieldLegend>
<FieldDescription>
Select all that apply to customize your experience.
</FieldDescription>
<FieldGroup className="gap-3">
<Field orientation="horizontal">
<Checkbox id="pref-dark" />
<FieldLabel htmlFor="pref-dark" className="font-normal">
Dark mode
</FieldLabel>
</Field>
<Field orientation="horizontal">
<Checkbox id="pref-compact" />
<FieldLabel htmlFor="pref-compact" className="font-normal">
Compact view
</FieldLabel>
</Field>
<Field orientation="horizontal">
<Checkbox id="pref-notifications" />
<FieldLabel htmlFor="pref-notifications" className="font-normal">
Enable notifications
</FieldLabel>
</Field>
</FieldGroup>
</FieldSet>
<Field data-invalid orientation="horizontal">
<Checkbox id="checkbox-invalid" aria-invalid />
<FieldLabel htmlFor="checkbox-invalid" className="font-normal">
Invalid checkbox
</FieldLabel>
</Field>
<Field data-disabled orientation="horizontal">
<Checkbox id="checkbox-disabled-field" disabled />
<FieldLabel htmlFor="checkbox-disabled-field" className="font-normal">
Disabled checkbox
</FieldLabel>
</Field>
</FieldGroup>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does CheckboxFields() do?
CheckboxFields() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/field-example.tsx.
Where is CheckboxFields() defined?
CheckboxFields() is defined in apps/v4/registry/bases/base/examples/field-example.tsx at line 435.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free