ToggleWithIcon() — ui Function Reference
Architecture documentation for the ToggleWithIcon() function in toggle-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ba6017ff_b6ac_1ebc_aa17_4c2a53a5add1["ToggleWithIcon()"] a3855539_0a9d_85ab_ed15_4f25cab72cdf["toggle-example.tsx"] ba6017ff_b6ac_1ebc_aa17_4c2a53a5add1 -->|defined in| a3855539_0a9d_85ab_ed15_4f25cab72cdf style ba6017ff_b6ac_1ebc_aa17_4c2a53a5add1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/toggle-example.tsx lines 310–338
function ToggleWithIcon() {
return (
<Example title="With Icon">
<div className="flex flex-wrap items-center gap-2">
<Toggle aria-label="Toggle bookmark" defaultPressed>
<IconPlaceholder
lucide="BookmarkIcon"
tabler="IconBookmark"
hugeicons="BookmarkIcon"
phosphor="BookmarkIcon"
remixicon="RiBookmarkLine"
className="group-data-[state=on]/toggle:fill-accent-foreground"
/>
</Toggle>
<Toggle variant="outline" aria-label="Toggle bookmark outline">
<IconPlaceholder
lucide="BookmarkIcon"
tabler="IconBookmark"
hugeicons="BookmarkIcon"
phosphor="BookmarkIcon"
remixicon="RiBookmarkLine"
className="group-data-[state=on]/toggle:fill-accent-foreground"
/>
Bookmark
</Toggle>
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ToggleWithIcon() do?
ToggleWithIcon() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/toggle-example.tsx.
Where is ToggleWithIcon() defined?
ToggleWithIcon() is defined in apps/v4/registry/bases/base/examples/toggle-example.tsx at line 310.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free