Installation
Setup
Register the addon in your.storybook/main.ts:
Usage
Use thefn() function from storybook/test to create action handlers:
Action Arguments
Actions automatically capture and display all arguments passed to the handler:- The handler name (e.g.,
onPress) - Arguments passed to the handler
- Timestamp
- Call count (if called multiple times with same arguments)
Complex Data Types
Actions handle complex data types gracefully:- Objects in an expandable tree view
- Arrays with their contents
- Nested data structures
- Function references