Home / Function/ ToggleWithButtonIcon() — ui Function Reference

ToggleWithButtonIcon() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  537ff2d8_ef2e_b835_7905_809fb0f3c979["ToggleWithButtonIcon()"]
  a3855539_0a9d_85ab_ed15_4f25cab72cdf["toggle-example.tsx"]
  537ff2d8_ef2e_b835_7905_809fb0f3c979 -->|defined in| a3855539_0a9d_85ab_ed15_4f25cab72cdf
  style 537ff2d8_ef2e_b835_7905_809fb0f3c979 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/toggle-example.tsx lines 140–211

function ToggleWithButtonIcon() {
  return (
    <Example title="With Button Icon">
      <div className="flex flex-col gap-4">
        <div className="flex items-center gap-2">
          <Button variant="outline" size="icon-sm">
            <IconPlaceholder
              lucide="BoldIcon"
              tabler="IconBold"
              hugeicons="TextBoldIcon"
              phosphor="TextBIcon"
              remixicon="RiBold"
            />
          </Button>
          <Toggle variant="outline" aria-label="Toggle sm icon" size="sm">
            <IconPlaceholder
              lucide="BoldIcon"
              tabler="IconBold"
              hugeicons="TextBoldIcon"
              phosphor="TextBIcon"
              remixicon="RiBold"
            />
          </Toggle>
        </div>
        <div className="flex items-center gap-2">
          <Button variant="outline" size="icon">
            <IconPlaceholder
              lucide="ItalicIcon"
              tabler="IconItalic"
              hugeicons="TextItalicIcon"
              phosphor="TextItalicIcon"
              remixicon="RiItalic"
            />
          </Button>
          <Toggle
            variant="outline"
            aria-label="Toggle default icon"
            size="default"
          >
            <IconPlaceholder
              lucide="ItalicIcon"
              tabler="IconItalic"
              hugeicons="TextItalicIcon"
              phosphor="TextItalicIcon"
              remixicon="RiItalic"
            />
          </Toggle>
        </div>
        <div className="flex items-center gap-2">
          <Button variant="outline" size="icon-lg">
            <IconPlaceholder
              lucide="UnderlineIcon"
              tabler="IconUnderline"
              hugeicons="TextUnderlineIcon"
              phosphor="TextUnderlineIcon"
              remixicon="RiUnderline"
            />
          </Button>
          <Toggle variant="outline" aria-label="Toggle lg icon" size="lg">
            <IconPlaceholder
              lucide="UnderlineIcon"
              tabler="IconUnderline"
              hugeicons="TextUnderlineIcon"
              phosphor="TextUnderlineIcon"
              remixicon="RiUnderline"
            />
          </Toggle>
        </div>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free