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
  ee04a85d_58ee_b08b_0e86_d819643eadb3["ToggleWithButtonIcon()"]
  732d07fe_4126_27b7_8a89_b8f9929b69b4["toggle-example.tsx"]
  ee04a85d_58ee_b08b_0e86_d819643eadb3 -->|defined in| 732d07fe_4126_27b7_8a89_b8f9929b69b4
  style ee04a85d_58ee_b08b_0e86_d819643eadb3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/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/radix/examples/toggle-example.tsx.
Where is ToggleWithButtonIcon() defined?
ToggleWithButtonIcon() is defined in apps/v4/registry/bases/radix/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