Home / Function/ SelectWithGroups() — ui Function Reference

SelectWithGroups() — ui Function Reference

Architecture documentation for the SelectWithGroups() function in select-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  6c927607_90ba_6bb4_4614_5ece87b1503e["SelectWithGroups()"]
  45dbd80e_4241_7e94_2ac4_8c9f125488aa["select-example.tsx"]
  6c927607_90ba_6bb4_4614_5ece87b1503e -->|defined in| 45dbd80e_4241_7e94_2ac4_8c9f125488aa
  style 6c927607_90ba_6bb4_4614_5ece87b1503e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/select-example.tsx lines 203–228

function SelectWithGroups() {
  return (
    <Example title="With Groups & Labels">
      <Select>
        <SelectTrigger>
          <SelectValue placeholder="Select a fruit" />
        </SelectTrigger>
        <SelectContent>
          <SelectGroup>
            <SelectLabel>Fruits</SelectLabel>
            <SelectItem value="apple">Apple</SelectItem>
            <SelectItem value="banana">Banana</SelectItem>
            <SelectItem value="blueberry">Blueberry</SelectItem>
          </SelectGroup>
          <SelectSeparator />
          <SelectGroup>
            <SelectLabel>Vegetables</SelectLabel>
            <SelectItem value="carrot">Carrot</SelectItem>
            <SelectItem value="broccoli">Broccoli</SelectItem>
            <SelectItem value="spinach">Spinach</SelectItem>
          </SelectGroup>
        </SelectContent>
      </Select>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does SelectWithGroups() do?
SelectWithGroups() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/select-example.tsx.
Where is SelectWithGroups() defined?
SelectWithGroups() is defined in apps/v4/registry/bases/radix/examples/select-example.tsx at line 203.

Analyze Your Own Codebase

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

Try Supermodel Free