{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "toggle", "type": "registry:ui", "title": "Toggle", "files": [ { "path": "ui/toggle.tsrx", "type": "registry:ui", "target": "components/ui/toggle.tsrx", "content": "// Base UI base toggle — runs on @octanejs/base-ui's Toggle.\n//\n// THE PRESSED-STATE DIALECT DIFFERS, verified by rendering the primitive: Base UI emits a bare\n// `data-pressed` attribute (alongside `aria-pressed`), where radix emits `data-state=\"on\"`. So\n// the radix base's `data-[state=on]:` utilities are replaced with `data-pressed:` — copying them\n// unchanged would leave a toggle that never shows its pressed styling, with nothing failing.\n//\n// `disabled:` is kept rather than converted: Base UI's Toggle renders a real `