> ## Documentation Index
> Fetch the complete documentation index at: https://rive.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Trigger

A function that triggers an action when invoked.

```lua highlight={3} theme={null}
-- Define the script's data and inputs.
type MyNode = {
  onReset: Input<Trigger>,
}

-- Return a factory function that Rive uses to build the Node instance.
return function(): Node<MyNode>
  return {
    onReset = function() end,
  }
end
```
