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

field-group.tsx — ui Source File

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

File tsx DocumentationAtlas Changelog 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  f99ea369_30ac_a724_a791_32c6e41f5031["field-group.tsx"]
  0e5204ae_c5d7_cc02_3599_620cb7011a92["checkbox"]
  f99ea369_30ac_a724_a791_32c6e41f5031 --> 0e5204ae_c5d7_cc02_3599_620cb7011a92
  b5f68436_cf6b_fba3_fb29_abf27fd13442["field"]
  f99ea369_30ac_a724_a791_32c6e41f5031 --> b5f68436_cf6b_fba3_fb29_abf27fd13442
  style f99ea369_30ac_a724_a791_32c6e41f5031 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export default function FieldGroupExample() {
  return (
    <FieldGroup className="w-full max-w-xs">
      <FieldSet>
        <FieldLabel>Responses</FieldLabel>
        <FieldDescription>
          Get notified when ChatGPT responds to requests that take time, like
          research or image generation.
        </FieldDescription>
        <FieldGroup data-slot="checkbox-group">
          <Field orientation="horizontal">
            <Checkbox id="push" defaultChecked disabled />
            <FieldLabel htmlFor="push" className="font-normal">
              Push notifications
            </FieldLabel>
          </Field>
        </FieldGroup>
      </FieldSet>
      <FieldSeparator />
      <FieldSet>
        <FieldLabel>Tasks</FieldLabel>
        <FieldDescription>
          Get notified when tasks you&apos;ve created have updates.{" "}
          <a href="#">Manage tasks</a>
        </FieldDescription>
        <FieldGroup data-slot="checkbox-group">
          <Field orientation="horizontal">
            <Checkbox id="push-tasks" />
            <FieldLabel htmlFor="push-tasks" className="font-normal">
              Push notifications
            </FieldLabel>
          </Field>
          <Field orientation="horizontal">
            <Checkbox id="email-tasks" />
            <FieldLabel htmlFor="email-tasks" className="font-normal">
              Email notifications
            </FieldLabel>
          </Field>
        </FieldGroup>
      </FieldSet>
    </FieldGroup>
  )
}

Subdomains

Dependencies

  • checkbox
  • field

Frequently Asked Questions

What does field-group.tsx do?
field-group.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in field-group.tsx?
field-group.tsx defines 1 function(s): FieldGroupExample.
What does field-group.tsx depend on?
field-group.tsx imports 2 module(s): checkbox, field.
Where is field-group.tsx in the architecture?
field-group.tsx is located at apps/v4/examples/radix/field-group.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free