Interface Interaction

Penpot allows you to prototype interactions by connecting boards, which can act as screens.

interface Interaction {
    shape?: Shape;
    trigger: Trigger;
    delay?: null | number;
    action: Action;
    remove(): void;
}

Properties

Methods

Properties

shape?: Shape

The shape that owns the interaction

trigger: Trigger

The user action that will start the interaction.

delay?: null | number

Time in milliseconds after the action will happen. Only applies to after-delay triggers.

action: Action

The action that will execute after the trigger happens.

Methods

  • Removes the interaction

    Returns void