Zag Switch
Framework-agnostic switch widget core logic from Zag, implemented as a finite state machine with checked state, focus, keyboard interaction and ARIA wiring, reusable inside React, Solid, Vue, Svelte or Vanilla bindings.
Zag Switch on GitHub chakra-ui/zag is a free MIT framework-agnostic switch widget core logic, npm @zag-js/switch 1.49.0 no declared Node engines, finite state machine checked state focus keyboard interaction ARIA wiring reusable in React Solid Vue Svelte or Vanilla, no sold commercial tier (data as of Nov 23, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is Zag Switch free?
Zag Switch: Zag Switch is free open-source software released under the MIT license; the @zag-js/switch package latest 1.49.0 on npm has no declared Node engines, published Nov 22, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is Zag Switch free?
The code is free to self-host, but a hosted plan from the vendor may not be. Zag Switch publishes its source, so cost depends on where you run it.
How much does Zag Switch cost?
Zag Switch is free open-source software released under the MIT license; the @zag-js/switch package latest 1.49.0 on npm has no declared Node engines, published Nov 22, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check Zag Switch's current pricing?
On Zag Switch's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is Zag Switch?
The core encodes the switch on and off flow as a finite machine that tracks checked state, focus and keyboard toggle, dispatching transitions that framework bindings render into markup. The package carries no visual theme; React, Solid, Vue, Svelte or Vanilla wrappers expose the same machine state and events to each supported renderer.
How does pricing work?
The package installs free under its MIT license with no seat license; it bundles into the frontend app or runs in-process, and any commercial support or managed service would be outside the open-source project.
How does Zag Switch compare with other tools in Dev Workflow & Productivity?
Zag Switch is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| Zag Switch | Open source | Zag Switch is free open-source software released under the MIT license; the @zag-js/switch package latest 1.49.0 on npm has no declared Node engines, published Nov 22, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). | Nov 23, 2026 |
| Headless UI | Open source | Headless UI is free open-source software released under the MIT License; the @headlessui/react package latest 2.2.10 on npm has Node 10 or above, published Apr 7, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Radix Switch | Open source | Radix Switch is free open-source software released under the MIT license; the @radix-ui/react-switch package latest 1.4.1 on npm has no declared Node engines, published Oct 12, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026). | Nov 23, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
Zag Switch's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: Zag Switch is free open-source software released under the MIT license; the @zag-js/switch package latest 1.49.0 on npm has no declared Node engines, published Nov 22, 2026. No paid commercial edition or per-seat license is sold by the project (data as of Nov 23, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Headless UI
Unstyled fully accessible React component set for dialogs, popovers, menus, tabs, switches and lists, designed to compose with Tailwind CSS.
Radix Switch
Unstyled accessible switch primitive from Radix Primitives, with root and thumb parts, checked and unchecked state, focus management, keyboard interaction, ARIA wiring, controlled or uncontrolled state and composable styling slots for toggle controls.
Tool Information
- Official Websitegithub.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 23, 2026
