Generated by XState Viz: https://xstate.js.org/viz
✓ Published0🌍 Public
Aafbroman
Last edited Aug 3, 2020
Created on Aug 3, 2020
This example shows a state machine for a display that can be hidden or visible, with the visible state running two parallel substates: a light/dark mode and a brightness level that automatically dims after a 5-second timeout. The machine, defined with the XState library’s `Machine` function, uses a hierarchical configuration with parallel states, transitions on events like `TURN_ON`, `TURN_OFF`, and `SWITCH`, and a `delays` option for the timeout. The visualization is rendered by XState Viz, which interprets the machine definition to generate an interactive diagram of the states and transitions.
AI-generated description