# Zag\.js

[BASE product page](<https://base.akulich.dev/en/library/zag-js/>) · [Resource](<https://github.com/chakra-ui/zag>)

ID: zag\-js · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A state machine library for complex UI widget behavior: it helps share accessible interactions across React, Vue, and other adapters\.

## Type

UI library

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/zag-js/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/zag-js/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/zag-js/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/zag-js/#resource-access>)

Code and local use under MIT\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/zag-js/#resource-tasks>)

- Add accessible behavior to a complex UI widget
- Connect machine props to interface elements and test keyboard interactions

## Category IDs

- frontend
- design

## Subcategory IDs

- frontend\.components
- design\.systems

## Tags

- Zag\.js
- UI
- Development

## Also known as

- chakra\-ui/zag
- zagjs
- react\-zag
- design\-system\-framework

## [Selection purpose](<https://base.akulich.dev/en/library/zag-js/#resource-selection>)

Add accessible behavior to a complex UI widget

## [Choose this when](<https://base.akulich.dev/en/library/zag-js/#resource-selection>)

- Add accessible behavior to a complex UI widget
- Connect machine props to interface elements and test keyboard interactions

## [Requirements](<https://base.akulich.dev/en/library/zag-js/#resource-selection>)

- 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](<https://base.akulich.dev/en/library/zag-js/#resource-selection>)

- 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\.

## [Questions before use](<https://base.akulich.dev/en/library/zag-js/#resource-faq>)

### What can you use for free in Zag\.js?

Code and local use under MIT\.

### What additional costs might arise with Zag\.js?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for Zag\.js?

MIT for the code; dependencies have separate licenses\.

### How do you get started with Zag\.js?

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\.

### Can one UI behavior be used across different frameworks?

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\.

## Sources for the selection guide

- [https://github\.com/chakra\-ui/zag](<https://github.com/chakra-ui/zag>)
- [https://raw\.githubusercontent\.com/chakra\-ui/zag/HEAD/README\.md](<https://raw.githubusercontent.com/chakra-ui/zag/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/chakra\-ui/zag/HEAD/LICENSE](<https://raw.githubusercontent.com/chakra-ui/zag/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/zag-js/#resource-scenario>)

Add accessible behavior to a complex UI widget\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- The component's design, states, and data\.
- A compatible framework and the project's styles\.

## Steps

1. Choose a widget and connect its state machine through the required framework adapter\.
2. Connect machine props to interface elements and test keyboard interactions\.
3. Configure styles and check empty, loading, and error states\.

## Check your result

- 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\.

## [License](<https://base.akulich.dev/en/library/zag-js/#resource-license>)

MIT for the code; dependencies have separate licenses\.

## License explanations for the specified scope

### MIT — permissive license

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\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/zag-js/#resource-sources>)

- [Official source](<https://github.com/chakra-ui/zag>)
- [Official source](<https://raw.githubusercontent.com/chakra-ui/zag/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/chakra-ui/zag/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

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\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
