Minor Changes
-
19975c3Thanks
@segunadebayo! - Initial release of the vanilla JavaScript adapter for Zag.js.VanillaMachine- Class-based wrapper for zag machines with start/stop lifecyclenormalizeProps- Converts React-style props to vanilla DOM attributesspreadProps- Spreads props onto DOM elements with event listener management
import { VanillaMachine, normalizeProps, spreadProps } from "@zag-js/vanilla" import * as toggle from "@zag-js/toggle" const machine = new VanillaMachine(toggle.machine, { id: "toggle" }) machine.start() const api = toggle.connect(machine.service, normalizeProps) spreadProps(buttonEl, api.buttonProps) machine.stop()
Patch Changes
- Updated dependencies []:
- @zag-js/core@1.32.0
- @zag-js/store@1.32.0
- @zag-js/types@1.32.0
- @zag-js/utils@1.32.0