{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"c-switch-2","type":"registry:block","title":"Switch with description.","description":"Switch with description.","dependencies":[],"registryDependencies":["field","switch"],"files":[{"path":"c-switch-2.tsx","type":"registry:block","content":"import {\n  Field,\n  FieldContent,\n  FieldDescription,\n  FieldLabel,\n  FieldTitle,\n} from \"@/components/ui/field\"\nimport { Switch } from \"@/components/ui/switch\"\n\nexport function Pattern() {\n  return (\n    <div className=\"flex items-center justify-center\">\n      <FieldLabel htmlFor=\"switch-with-desc\" className=\"w-full max-w-xs\">\n        <Field orientation=\"horizontal\">\n          <FieldContent>\n            <FieldTitle>Share across devices</FieldTitle>\n            <FieldDescription>\n              Focus is shared across devices, and turns off when you leave the\n              app.\n            </FieldDescription>\n          </FieldContent>\n          <Switch id=\"switch-with-desc\" />\n        </Field>\n      </FieldLabel>\n    </div>\n  )\n}","target":"components/examples/c-switch-2.tsx"}],"meta":{"order":2}}