Skip to main content


type Reaction = { action?: Action, actions?: Action[], trigger: Trigger | null }

A prototyping Reaction describes interactivity in prototypes. It contains a list of Action objects ("what happens?") and a Trigger ("how do you make it happen?").

Note: The action field is now deprecated and replaced by the actions field in order to allow for multiple Actions on a Reaction.


When setting reactions, each Reaction must contain both a Trigger and a non-empty list of Action objects.