@sambego/storybook-styles
v1.0.0
Published
Add default styles to the storybook preview panel
Downloads
14,804
Maintainers
Readme
Storybook styles
Getting Started
npm install --save @sambego/storybook-styles
Then write your stories like this:
import React from 'react';
import { storiesOf } from "@storybook/react";
import styles from "@sambego/storybook-styles";
storiesOf("Button", module)
.addDecorator(styles({
background: 'tomato',
fontFamily: 'Helvetica, Arial, sans-serif'
}))
.add("with text", () => <button>Click me</button>);