
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
react-storybook-addon-add-stories-group
Advanced tools
A React Storybook addon to show add groups of stories and show them all toghether.
A React Storybook addon to show additional information for your stories.

Install the following npm module:
npm i --save-dev react-storybook-addon-add-stories-group
import { configure,setAddon } from '@kadira/storybook';
import addStoriesGroup from 'react-storybook-addon-add-stories-group'
setAddon(addStoriesGroup)
function loadStories() {
require('../src/components/stories/MyComp');
// require as many stories as you need.
}
configure(loadStories, module);
Then create your stories with the .addWithInfo API.
import { action , storiesOf} from '@kadira/storybook';
import MyComp from '../MyComp';
const stories = [
{
name:"with text" ,
props: {text:"super error props", resetErrorMessage: action('clicked!') }
},
{
name:"with very long text",
props: {text:"super error this is a reaaaaaalllly long error, probably more than one line of text, even if you have a huge monitor, text text", resetErrorMessage: action('clicked!') }
}
]
storiesOf('MyComp', module)
.addStoriesGroup(MyComp, stories)
Have a look at this example stories to learn more about the
addWithInfoAPI.
FAQs
A React Storybook addon to show add groups of stories and show them all toghether.
We found that react-storybook-addon-add-stories-group demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.