- Name
open- Kind
- property
- Type
boolean- Requirement
- required
DocsAPI referenceUI machinessidebar
sidebar machine
The public state machine contract for @grassroot/ui-machines/sidebar. The machine owns behaviour; the matching headless layer owns composition.
@grassroot/ui-machines/sidebar
Package
Service example
sidebar.tsts
import { createService } from "@grassroot/statechart";import { sidebarMachine } from "@grassroot/ui-machines/sidebar"; const service = createService(sidebarMachine, { input: {} });service.start();service.send({ type: "…" });service.stop();14 of 14