Gathering detailed insights and metrics for @kadira/storybook-addon-actions
Gathering detailed insights and metrics for @kadira/storybook-addon-actions
Gathering detailed insights and metrics for @kadira/storybook-addon-actions
Gathering detailed insights and metrics for @kadira/storybook-addon-actions
REPO/PACKAGE MOVED - Action logger addon for storybook
npm install @kadira/storybook-addon-actions
Typescript
Module System
Node Version
NPM Version
61.1
Supply Chain
75.4
Quality
80.2
Maintenance
50
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
19 Stars
60 Commits
8 Forks
11 Watchers
1 Branches
11 Contributors
Updated on Jan 28, 2023
Latest Version
1.1.3
Package Id
@kadira/storybook-addon-actions@1.1.3
Size
134.70 kB
NPM Version
4.0.5
Node Version
7.4.0
Published on
Mar 22, 2017
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
The Action Logger addon can be used to display data received by event handlers. This addon works with both React Storybook and React Native Storybook (included by default).
You can use this addon without installing it manually.
Import the action
function and use it to create actions handlers. When creating action handlers, provide a name to make it easier to identify.
1import { storiesOf, action } from '@kadira/storybook' 2// or import { action } from '@kadira/storybook-addon-actions' 3 4storiesOf('Button', module) 5 .add('default view', () => ( 6 <Button onClick={ action('button-click') }> 7 Hello World! 8 </Button> 9 ))
If you wish to process action data before sending them over to the logger, you can do it with action decorators.
decorateAction
takes an array of decorator functions. Each decorator function is passed an array of arguments, and should return a new arguments array to use. decorateAction
returns a function that can be used like action
but will log the modified arguments instead of the original arguments.
1import { action, decorateAction } from '@kadira/storybook-addon-actions' 2 3const firstArgAction = decorateAction([ 4 args => args.slice(0, 1) 5]); 6 7storiesOf('Button', module) 8 .add('default view', () => ( 9 <Button onClick={ firstArgAction('button-click') }> 10 Hello World! 11 </Button> 12 ))
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 9/19 approved changesets -- score normalized to 4
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More