Home / Function/ FieldSet() — ui Function Reference

FieldSet() — ui Function Reference

Architecture documentation for the FieldSet() function in field.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  40d0c104_aaea_4e6a_74bf_3fe7568b5a3b["FieldSet()"]
  2fdb221e_c552_bb16_cfe7_db746ae11988["field.tsx"]
  40d0c104_aaea_4e6a_74bf_3fe7568b5a3b -->|defined in| 2fdb221e_c552_bb16_cfe7_db746ae11988
  style 40d0c104_aaea_4e6a_74bf_3fe7568b5a3b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui/field.tsx lines 9–20

function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">) {
  return (
    <fieldset
      data-slot="field-set"
      className={cn(
        "flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does FieldSet() do?
FieldSet() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/field.tsx.
Where is FieldSet() defined?
FieldSet() is defined in apps/v4/examples/radix/ui/field.tsx at line 9.

Analyze Your Own Codebase

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

Try Supermodel Free