Home / Function/ SelectWithButton() — ui Function Reference

SelectWithButton() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/select-example.tsx lines 284–323

function SelectWithButton() {
  return (
    <Example title="With Button">
      <div className="flex flex-col gap-4">
        <div className="flex items-center gap-2">
          <Select>
            <SelectTrigger size="sm">
              <SelectValue placeholder="Small" />
            </SelectTrigger>
            <SelectContent>
              <SelectGroup>
                <SelectItem value="apple">Apple</SelectItem>
                <SelectItem value="banana">Banana</SelectItem>
                <SelectItem value="blueberry">Blueberry</SelectItem>
              </SelectGroup>
            </SelectContent>
          </Select>
          <Button variant="outline" size="sm">
            Submit
          </Button>
        </div>
        <div className="flex items-center gap-2">
          <Select>
            <SelectTrigger>
              <SelectValue placeholder="Default" />
            </SelectTrigger>
            <SelectContent>
              <SelectGroup>
                <SelectItem value="apple">Apple</SelectItem>
                <SelectItem value="banana">Banana</SelectItem>
                <SelectItem value="blueberry">Blueberry</SelectItem>
              </SelectGroup>
            </SelectContent>
          </Select>
          <Button variant="outline">Submit</Button>
        </div>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free