Components (172)
Petri Net
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Petri Net…
Usage
import { PetriNet } from "ui-kit/components/petri-net";Props
| Prop | Type | Default | Description |
|---|---|---|---|
name* | string | — | — |
places* | PetriPlace[] | — | — |
transitions* | PetriTransition[] | — | — |
run | (string | string[])[] | — | A run to play by itself – transition ids in order; an array of ids fires them together. It waits until each one can fire, and a person's step waits a little longer, as if they were deciding. Without it, nothing fires on its own |
loop | boolean | true | Start the run over when it is done – default true |
pace | number | 650 | Milliseconds an arc takes to fill – default 650; the agent works twice as long |
onFire | (transitionId: string) => void | — | Called whenever a transition fires |
className | string | — | — |