{"schemaVersion":1,"id":"zag-js","name":"Zag.js","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/zag-js/","officialUrl":"https://github.com/chakra-ui/zag","isCatalog":false,"description":"A state machine library for complex UI widget behavior: it helps share accessible interactions across React, Vue, and other adapters.","tasks":["Add accessible behavior to a complex UI widget","Connect machine props to interface elements and test keyboard interactions"],"categoryIds":["frontend","design"],"subcategoryIds":["frontend.components","design.systems"],"tags":["Zag.js","UI","Development"],"aliases":["chakra-ui/zag","zagjs","react-zag","design-system-framework"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Add accessible behavior to a complex UI widget","chooseWhen":["Add accessible behavior to a complex UI widget","Connect machine props to interface elements and test keyboard interactions"],"considerInstead":[],"requirements":["Install the required machine package and your framework adapter. In the React example, useMachine, connect, and normalizeProps create props to pass to the root element and every item."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","Zag is headless: interaction logic does not provide ready-made styles. Keyboard/focus/ARIA logic does not establish accessibility of your final markup unless props are connected to the corresponding elements."],"faq":[{"question":"What can you use for free in Zag.js?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Zag.js?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Zag.js?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with Zag.js?","answer":"Choose a widget and connect its state machine through the required framework adapter. Connect machine props to interface elements and test keyboard interactions. Configure styles and check empty, loading, and error states."},{"question":"Can one UI behavior be used across different frameworks?","answer":"The machine models interactions independently of frameworks; the README lists React, Vue, Solid, and Svelte adapters. The component has your own markup and styles; the adapter connects them to state and events."}],"related":[],"sources":["https://github.com/chakra-ui/zag","https://raw.githubusercontent.com/chakra-ui/zag/HEAD/README.md","https://raw.githubusercontent.com/chakra-ui/zag/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Add accessible behavior to a complex UI widget.","inputs":["The component's design, states, and data.","A compatible framework and the project's styles."],"steps":["Choose a widget and connect its state machine through the required framework adapter.","Connect machine props to interface elements and test keyboard interactions.","Configure styles and check empty, loading, and error states."],"checks":["The keyboard, focus indicators, and a screen reader let users complete the action.","The component works on a narrow screen and with long data values."]},"sources":["https://github.com/chakra-ui/zag","https://raw.githubusercontent.com/chakra-ui/zag/HEAD/README.md","https://raw.githubusercontent.com/chakra-ui/zag/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"UI library","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/chakra-ui/zag","label":"Official source"},{"url":"https://raw.githubusercontent.com/chakra-ui/zag/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/chakra-ui/zag/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}