Home / Function/ CheckboxGroup() — ui Function Reference

CheckboxGroup() — ui Function Reference

Architecture documentation for the CheckboxGroup() function in checkbox-group.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  89ad1bf4_5c33_08c5_125d_5c1aea361563["CheckboxGroup()"]
  1ec88943_f961_d2e6_68f8_7db5c49fbe1d["checkbox-group.tsx"]
  89ad1bf4_5c33_08c5_125d_5c1aea361563 -->|defined in| 1ec88943_f961_d2e6_68f8_7db5c49fbe1d
  style 89ad1bf4_5c33_08c5_125d_5c1aea361563 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/checkbox-group.tsx lines 11–74

export function CheckboxGroup() {
  return (
    <FieldSet>
      <FieldLegend variant="label">
        Show these items on the desktop:
      </FieldLegend>
      <FieldDescription>
        Select the items you want to show on the desktop.
      </FieldDescription>
      <FieldGroup className="gap-3">
        <Field orientation="horizontal">
          <Checkbox
            id="finder-pref-9k2-hard-disks-ljj-checkbox"
            name="finder-pref-9k2-hard-disks-ljj-checkbox"
            defaultChecked
          />
          <FieldLabel
            htmlFor="finder-pref-9k2-hard-disks-ljj-checkbox"
            className="font-normal"
          >
            Hard disks
          </FieldLabel>
        </Field>
        <Field orientation="horizontal">
          <Checkbox
            id="finder-pref-9k2-external-disks-1yg-checkbox"
            name="finder-pref-9k2-external-disks-1yg-checkbox"
            defaultChecked
          />
          <FieldLabel
            htmlFor="finder-pref-9k2-external-disks-1yg-checkbox"
            className="font-normal"
          >
            External disks
          </FieldLabel>
        </Field>
        <Field orientation="horizontal">
          <Checkbox
            id="finder-pref-9k2-cds-dvds-fzt-checkbox"
            name="finder-pref-9k2-cds-dvds-fzt-checkbox"
          />
          <FieldLabel
            htmlFor="finder-pref-9k2-cds-dvds-fzt-checkbox"
            className="font-normal"
          >
            CDs, DVDs, and iPods
          </FieldLabel>
        </Field>
        <Field orientation="horizontal">
          <Checkbox
            id="finder-pref-9k2-connected-servers-6l2-checkbox"
            name="finder-pref-9k2-connected-servers-6l2-checkbox"
          />
          <FieldLabel
            htmlFor="finder-pref-9k2-connected-servers-6l2-checkbox"
            className="font-normal"
          >
            Connected servers
          </FieldLabel>
        </Field>
      </FieldGroup>
    </FieldSet>
  )
}

Subdomains

Frequently Asked Questions

What does CheckboxGroup() do?
CheckboxGroup() is a function in the ui codebase, defined in apps/v4/examples/base/checkbox-group.tsx.
Where is CheckboxGroup() defined?
CheckboxGroup() is defined in apps/v4/examples/base/checkbox-group.tsx at line 11.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free