Home / Function/ ButtonGroupWithSelect() — ui Function Reference

ButtonGroupWithSelect() — ui Function Reference

Architecture documentation for the ButtonGroupWithSelect() function in button-group-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  96113d1b_bbe4_b9e1_c7e1_fbe1a6487846["ButtonGroupWithSelect()"]
  d41ef55a_d021_eff9_a1f7_cf3a6ebe42df["button-group-example.tsx"]
  96113d1b_bbe4_b9e1_c7e1_fbe1a6487846 -->|defined in| d41ef55a_d021_eff9_a1f7_cf3a6ebe42df
  style 96113d1b_bbe4_b9e1_c7e1_fbe1a6487846 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/button-group-example.tsx lines 246–280

function ButtonGroupWithSelect() {
  return (
    <Example title="With Select">
      <Field>
        <Label htmlFor="amount">Amount</Label>
        <ButtonGroup>
          <Select items={currencyItems} defaultValue={currencyItems[0]}>
            <SelectTrigger>
              <SelectValue />
            </SelectTrigger>
            <SelectContent>
              <SelectGroup>
                {currencyItems.map((item) => (
                  <SelectItem key={item.value} value={item}>
                    {item.label}
                  </SelectItem>
                ))}
              </SelectGroup>
            </SelectContent>
          </Select>
          <Input placeholder="Enter amount to send" />
          <Button variant="outline">
            <IconPlaceholder
              lucide="ArrowRightIcon"
              tabler="IconArrowRight"
              hugeicons="ArrowRight01Icon"
              phosphor="ArrowRightIcon"
              remixicon="RiArrowRightLine"
            />
          </Button>
        </ButtonGroup>
      </Field>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does ButtonGroupWithSelect() do?
ButtonGroupWithSelect() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/button-group-example.tsx.
Where is ButtonGroupWithSelect() defined?
ButtonGroupWithSelect() is defined in apps/v4/registry/bases/base/examples/button-group-example.tsx at line 246.

Analyze Your Own Codebase

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

Try Supermodel Free