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
  652f2d30_ea31_9c75_ab86_9519ab4b08ee["SwitchSizes()"]
  029eeb28_1d7e_d8d4_dbfb_f0604711c8d3["switch-example.tsx"]
  652f2d30_ea31_9c75_ab86_9519ab4b08ee -->|defined in| 029eeb28_1d7e_d8d4_dbfb_f0604711c8d3
  style 652f2d30_ea31_9c75_ab86_9519ab4b08ee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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