Home / Function/ FieldGroupExample() — ui Function Reference

FieldGroupExample() — ui Function Reference

Architecture documentation for the FieldGroupExample() function in field-group.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  76ceedf9_2eb3_c7e9_59c2_0ee685c75dc0["FieldGroupExample()"]
  f99ea369_30ac_a724_a791_32c6e41f5031["field-group.tsx"]
  76ceedf9_2eb3_c7e9_59c2_0ee685c75dc0 -->|defined in| f99ea369_30ac_a724_a791_32c6e41f5031
  style 76ceedf9_2eb3_c7e9_59c2_0ee685c75dc0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/field-group.tsx lines 11–53

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

Frequently Asked Questions

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