{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "switch",
  "title": "Switch",
  "description": "A control that allows users to toggle between checked and unchecked states.",
  "dependencies": [
    "@expo/ui"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "ui/switch.tsx",
      "content": "import {\n  Host as HostPrimitive,\n  Switch as SwitchPrimitive,\n  type SwitchProps as SwitchPrimitiveProps,\n} from \"@expo/ui\";\nimport { tint } from \"@expo/ui/swift-ui/modifiers\";\nimport { useCSSVariable } from \"uniwind\";\n\n// Types\ntype SwitchProps = Omit<SwitchPrimitiveProps, \"modifiers\">;\n\n// Components\nexport const Switch = (props: SwitchProps) => {\n  const primaryColor = useCSSVariable(\"--color-primary\") as string;\n  return (\n    <HostPrimitive matchContents>\n      <SwitchPrimitive {...props} modifiers={[tint(primaryColor)]} />\n    </HostPrimitive>\n  );\n};\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}
