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

Relationship Graph

Source Code

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