Home / Function/ ToggleWithButtonIconText() — ui Function Reference

ToggleWithButtonIconText() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0d1fa271_afc0_67a9_0b81_3a567467d176["ToggleWithButtonIconText()"]
  732d07fe_4126_27b7_8a89_b8f9929b69b4["toggle-example.tsx"]
  0d1fa271_afc0_67a9_0b81_3a567467d176 -->|defined in| 732d07fe_4126_27b7_8a89_b8f9929b69b4
  style 0d1fa271_afc0_67a9_0b81_3a567467d176 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/toggle-example.tsx lines 213–293

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

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free