Skip to Content
UI Kit
Components (172)

Petri Net

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading Petri Net…

Usage

import { PetriNet } from "ui-kit/components/petri-net";

Props

PropTypeDefaultDescription
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
loopbooleantrueStart the run over when it is done – default true
pacenumber650Milliseconds an arc takes to fill – default 650; the agent works twice as long
onFire(transitionId: string) => void—Called whenever a transition fires
classNamestring——

On this page