Home / Function/ CheckboxDemo() — ui Function Reference

CheckboxDemo() — ui Function Reference

Architecture documentation for the CheckboxDemo() function in checkbox-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  06a9d928_3b65_9a48_8e52_c88d43aab3bb["CheckboxDemo()"]
  5e0e6fa8_b1c3_e7b4_c813_472d1b34d0a0["checkbox-demo.tsx"]
  06a9d928_3b65_9a48_8e52_c88d43aab3bb -->|defined in| 5e0e6fa8_b1c3_e7b4_c813_472d1b34d0a0
  style 06a9d928_3b65_9a48_8e52_c88d43aab3bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/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>
  )
}

Subdomains

Frequently Asked Questions

What does CheckboxDemo() do?
CheckboxDemo() is a function in the ui codebase, defined in apps/v4/examples/radix/checkbox-demo.tsx.
Where is CheckboxDemo() defined?
CheckboxDemo() is defined in apps/v4/examples/radix/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