Home / Function/ SwitchWithLabel() — ui Function Reference

SwitchWithLabel() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f55130a7_caa6_4142_d287_fbc169a7dea6["SwitchWithLabel()"]
  029eeb28_1d7e_d8d4_dbfb_f0604711c8d3["switch-example.tsx"]
  f55130a7_caa6_4142_d287_fbc169a7dea6 -->|defined in| 029eeb28_1d7e_d8d4_dbfb_f0604711c8d3
  style f55130a7_caa6_4142_d287_fbc169a7dea6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/switch-example.tsx lines 37–46

function SwitchWithLabel() {
  return (
    <Example title="With Label">
      <div className="flex items-center gap-2">
        <Switch id="switch-bluetooth" defaultChecked />
        <Label htmlFor="switch-bluetooth">Bluetooth</Label>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free