Home / Function/ SwitchSizes() — ui Function Reference

SwitchSizes() — ui Function Reference

Architecture documentation for the SwitchSizes() function in switch-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  bf449908_c864_c694_7d7c_6f7021c0d4e7["SwitchSizes()"]
  1e57b81b_a053_b9d5_34f5_07ff10e7a928["switch-example.tsx"]
  bf449908_c864_c694_7d7c_6f7021c0d4e7 -->|defined in| 1e57b81b_a053_b9d5_34f5_07ff10e7a928
  style bf449908_c864_c694_7d7c_6f7021c0d4e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/switch-example.tsx lines 86–101

function SwitchSizes() {
  return (
    <Example title="Sizes">
      <div className="flex flex-col gap-12">
        <div className="flex items-center gap-2">
          <Switch id="switch-size-sm" size="sm" />
          <Label htmlFor="switch-size-sm">Small</Label>
        </div>
        <div className="flex items-center gap-2">
          <Switch id="switch-size-default" size="default" />
          <Label htmlFor="switch-size-default">Default</Label>
        </div>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free