1.0.0 • Published 7 years ago

@sambego/storybook-styles v1.0.0

Weekly downloads
6,901
License
MIT
Repository
github
Last release
7 years ago

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>);