react-story

1.4.7 • Public • Published

react-story

Travis npm package Coveralls

Describe react-story here.

Usage

import React from 'react'
import { Demo, PropsTable } from '../../../../src'
import Button from '../my-library/Button'
import ButtonRaw from '!raw-loader!../my-library/Button'
import Markdown from './Button.md'

const ButtonNormal = () => (
  <Demo
    name="Normal Button"
    desc="Normal Buttons"
    code={Markdown}
  >
    <Button>Hello</Button>
    <Button>Hello</Button>
    <Button>Hello</Button>
  </Demo>
)

const DemoComponent = () => {
  return (
    <Story>
      <ButtonNormal />
      <PropsTable
        demonstrating={Button}
        raw={ButtonRaw}
      />
    </Story>
  )
}

export default {
  name: 'Button',
  component: DemoComponent,
  children: []
}

Readme

Keywords

Package Sidebar

Install

npm i react-story

Weekly Downloads

129

Version

1.4.7

License

MIT

Last publish

Collaborators

  • tannerlinsley
  • zsherman