Home / Function/ SwitchWithDescription() — ui Function Reference

SwitchWithDescription() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/switch-example.tsx lines 48–65

function SwitchWithDescription() {
  return (
    <Example title="With Description">
      <FieldLabel htmlFor="switch-focus-mode">
        <Field orientation="horizontal">
          <FieldContent>
            <FieldTitle>Share across devices</FieldTitle>
            <FieldDescription>
              Focus is shared across devices, and turns off when you leave the
              app.
            </FieldDescription>
          </FieldContent>
          <Switch id="switch-focus-mode" />
        </Field>
      </FieldLabel>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free