Home / Function/ ToggleGroupWithInputAndSelect() — ui Function Reference

ToggleGroupWithInputAndSelect() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  eb0f1880_3eb3_a1f9_e561_7f52a69d8612["ToggleGroupWithInputAndSelect()"]
  9d75b38c_5fd6_f22c_f903_b0d70c7a92d2["toggle-group-example.tsx"]
  eb0f1880_3eb3_a1f9_e561_7f52a69d8612 -->|defined in| 9d75b38c_5fd6_f22c_f903_b0d70c7a92d2
  style eb0f1880_3eb3_a1f9_e561_7f52a69d8612 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/toggle-group-example.tsx lines 350–378

function ToggleGroupWithInputAndSelect() {
  return (
    <Example title="With Input and Select">
      <div className="flex items-center gap-2">
        <Input type="search" placeholder="Search..." className="flex-1" />
        <Select defaultValue="all">
          <SelectTrigger className="w-32">
            <SelectValue />
          </SelectTrigger>
          <SelectContent>
            <SelectGroup>
              <SelectItem value="all">All</SelectItem>
              <SelectItem value="active">Active</SelectItem>
              <SelectItem value="archived">Archived</SelectItem>
            </SelectGroup>
          </SelectContent>
        </Select>
        <ToggleGroup type="single" defaultValue="grid" variant="outline">
          <ToggleGroupItem value="grid" aria-label="Grid view">
            Grid
          </ToggleGroupItem>
          <ToggleGroupItem value="list" aria-label="List view">
            List
          </ToggleGroupItem>
        </ToggleGroup>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free