Zag is a collection of open source "Finite state machines for accessible JavaScript components".
This repo is a subset of Zag components wrapped for LWC.
Copy the desired components.
(All components require zagMixin
and zagStyles
as dependencies.)
Version info is documented in the component's zag.js
file.
Component attributes like [data-part]
have been converted to css ::parts.
- add
@zag-js/*
component topackage.json
- add component to
bundle-script.mjs
- run script to compile:
node bundle-script.mjs
- create new LWC
- copy zag component code from
/dist
to azag.js
file in new lwc folder