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
  8eddd7c4_997e_2cdf_6267_6e32e2f69a6c["ToggleWithButtonIconText()"]
  a3855539_0a9d_85ab_ed15_4f25cab72cdf["toggle-example.tsx"]
  8eddd7c4_997e_2cdf_6267_6e32e2f69a6c -->|defined in| a3855539_0a9d_85ab_ed15_4f25cab72cdf
  style 8eddd7c4_997e_2cdf_6267_6e32e2f69a6c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/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"
              phosphor="TextBIcon"
              remixicon="RiBold"
              data-icon="inline-start"
            />
            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/base/examples/toggle-example.tsx.
Where is ToggleWithButtonIconText() defined?
ToggleWithButtonIconText() is defined in apps/v4/registry/bases/base/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