{
  "componentId": "shadcn:Switch",
  "purpose": "Change a binary setting immediately with a stable visible name and a hidden form input.",
  "sourceCommit": "45bbf9ba23c9c0f63d38887947e5fb06f59c7da3",
  "primitiveVersion": "1.9.0",
  "sourceFiles": [
    "sources/shadcn/apps/v4/registry/bases/base/ui/switch.tsx.source",
    "sources/shadcn/apps/v4/content/docs/components/base/switch.mdx.source",
    "sources/shadcn/apps/v4/registry/bases/base/examples/switch-example.tsx.source"
  ],
  "primitiveDocs": [
    "sources/base-ui-1.9.0/docs/switch.md.source"
  ],
  "decisions": {
    "scope": "Sufficient source-bound React reference description; no certification of every consumer or native platform.",
    "normalizedProtocol": "SCXML events project source callbacks/native interactions. Send entries document the observed callback and are not additional DOM dispatches. The adapter supplies isCanceled after the source callback transaction. Controlled SET_VALUE/SET_CHECKED props remain authoritative.",
    "visual": "Native FIG observations and DTCG values remain visual truth. React styles may differ; no unverified pixel equivalence is assumed."
  },
  "visualContract": {
    "layoutPolicy": "Default track 32×18px/thumb 16px and small track 24×14px/thumb 12px retain the native semantic sizes. Thumb travel derives from track minus thumb minus two 1px insets, including RTL. An explicit optional caller field owns label arrangement. Native checked/disabled/focus states remain independent from label content; no imported fixed specimen position or synthetic value event is used.",
    "parts": "component.json#/partBindings",
    "tokenBindings": "component.json#/visualContract/tokens",
    "sourceEvidence": "figma/traceability.json"
  }
}
