{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "switch-example", "title": "Switch", "registryDependencies": [ "field", "label", "switch", "example" ], "files": [ { "path": "registry/base-nova/examples/switch-example.tsx", "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldLabel,\n FieldTitle,\n} from \"@/registry/bases/base/ui/field\"\nimport { Label } from \"@/registry/bases/base/ui/label\"\nimport { Switch } from \"@/registry/bases/base/ui/switch\"\n\nexport default function SwitchExample() {\n return (\n \n \n \n \n \n \n )\n}\n\nfunction SwitchBasic() {\n return (\n \n \n \n Airplane Mode\n \n \n )\n}\n\nfunction SwitchWithLabel() {\n return (\n \n \n \n Bluetooth\n \n \n )\n}\n\nfunction SwitchWithDescription() {\n return (\n \n \n \n \n Share across devices\n \n Focus is shared across devices, and turns off when you leave the\n app.\n \n \n \n \n \n \n )\n}\n\nfunction SwitchDisabled() {\n return (\n \n \n \n \n \n Disabled (Unchecked)\n \n \n \n \n Disabled (Checked)\n \n \n \n )\n}\n\nfunction SwitchSizes() {\n return (\n \n \n \n \n Small\n \n \n \n Default\n \n \n \n )\n}\n", "type": "registry:example" } ], "type": "registry:example" }