ToggleGroupWithIcons() — ui Function Reference
Architecture documentation for the ToggleGroupWithIcons() function in toggle-group-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 23bef2d6_e5a4_c868_80dc_a6bb48d1f67f["ToggleGroupWithIcons()"] 7cfec362_e6dc_17ef_efcb_b8f12bc65346["toggle-group-example.tsx"] 23bef2d6_e5a4_c868_80dc_a6bb48d1f67f -->|defined in| 7cfec362_e6dc_17ef_efcb_b8f12bc65346 style 23bef2d6_e5a4_c868_80dc_a6bb48d1f67f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/toggle-group-example.tsx lines 201–250
function ToggleGroupWithIcons() {
return (
<Example title="With Icons">
<ToggleGroup multiple variant="outline" spacing={2} size="sm">
<ToggleGroupItem
value="star"
aria-label="Toggle star"
className="aria-pressed:*:[svg]:fill-foreground aria-pressed:*:[svg]:stroke-foreground aria-pressed:bg-transparent"
>
<IconPlaceholder
lucide="StarIcon"
tabler="IconStar"
hugeicons="StarIcon"
phosphor="StarIcon"
remixicon="RiStarLine"
/>
Star
</ToggleGroupItem>
<ToggleGroupItem
value="heart"
aria-label="Toggle heart"
className="aria-pressed:*:[svg]:fill-foreground aria-pressed:*:[svg]:stroke-foreground aria-pressed:bg-transparent"
>
<IconPlaceholder
lucide="HeartIcon"
tabler="IconHeart"
hugeicons="FavouriteIcon"
phosphor="HeartIcon"
remixicon="RiHeartLine"
/>
Heart
</ToggleGroupItem>
<ToggleGroupItem
value="bookmark"
aria-label="Toggle bookmark"
className="aria-pressed:*:[svg]:fill-foreground aria-pressed:*:[svg]:stroke-foreground aria-pressed:bg-transparent"
>
<IconPlaceholder
lucide="BookmarkIcon"
tabler="IconBookmark"
hugeicons="BookmarkIcon"
phosphor="BookmarkIcon"
remixicon="RiBookmarkLine"
/>
Bookmark
</ToggleGroupItem>
</ToggleGroup>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ToggleGroupWithIcons() do?
ToggleGroupWithIcons() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/toggle-group-example.tsx.
Where is ToggleGroupWithIcons() defined?
ToggleGroupWithIcons() is defined in apps/v4/registry/bases/base/examples/toggle-group-example.tsx at line 201.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free