Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Sambego/storybook-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Sambego committed Oct 11, 2017
2 parents d33a66f + 25a2a03 commit eb31671
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ import styles from "@sambego/storybook-styles";

storiesOf("Button", module)
.addDecorator(styles({
background: 'tomato',
fontFamily: 'Helvetica, Arial, sans-serif'
background: '#e1ecfa',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
height: '500px',
}))
.add("with text", () => <button>Click me</button>);
```

The style decorator accepts a JavaScript object with camelCased style properties which will be applied around the content of the preview area.

0 comments on commit eb31671

Please sign in to comment.