Home / File/ checkbox-group.tsx — ui Source File

checkbox-group.tsx — ui Source File

Architecture documentation for checkbox-group.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx DocumentationAtlas ContentSourcing 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  1ec88943_f961_d2e6_68f8_7db5c49fbe1d["checkbox-group.tsx"]
  701738bf_cdcf_955d_1e15_8125ef50e18b["checkbox"]
  1ec88943_f961_d2e6_68f8_7db5c49fbe1d --> 701738bf_cdcf_955d_1e15_8125ef50e18b
  e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"]
  1ec88943_f961_d2e6_68f8_7db5c49fbe1d --> e6c524b5_d047_d4f9_50b2_7f100d612cb2
  style 1ec88943_f961_d2e6_68f8_7db5c49fbe1d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Checkbox } from "@/examples/base/ui/checkbox"
import {
  Field,
  FieldDescription,
  FieldGroup,
  FieldLabel,
  FieldLegend,
  FieldSet,
} from "@/examples/base/ui/field"

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

Functions

Dependencies

  • checkbox
  • field

Frequently Asked Questions

What does checkbox-group.tsx do?
checkbox-group.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-group.tsx?
checkbox-group.tsx defines 1 function(s): CheckboxGroup.
What does checkbox-group.tsx depend on?
checkbox-group.tsx imports 2 module(s): checkbox, field.
Where is checkbox-group.tsx in the architecture?
checkbox-group.tsx is located at apps/v4/examples/base/checkbox-group.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