Storybook Angular Wrapper
This decorator allows you to wrap all your stories with a template:
;;; storiesOf'Your component', module .addDecorator moduleMetadata, .addDecorator angularWrapper ` @{template} `, '@{template}', , .add'with items', .add'no items',;
This will result in a 3em
margin applied to both stories.
Installation
yarn add -D storybook-angular-wrapper
or
npm i --save-dev storybook-angular-wrapper
Disclaimer
This works better with template
stories, it does support component
stories but this is a mode that's limited and should only be used under certain very specific circumstances.