Zag
A library of framework-agnostic UI component logic written as state machines, used by Ark UI and others.
In more detail
Zag describes each component, such as a menu or dialog, as a state machine and connects it to React, Vue, Solid or Svelte. It is another example of the headless approach.
Related terms
- state machine — A model in which something is always in exactly one named state, such as idle, loading, success or error, and only defined events move it to another.
- headless component — A component that provides behaviour, state and accessibility but no styling, leaving the look entirely to the consumer.
Taught in
- Headless Architecture: State vs Presentation Separation — Design Systems & Component Engineering