Skip to content

Instantly share code, notes, and snippets.

@NiallJoeMaher
Created May 29, 2019 07:39
Show Gist options
  • Save NiallJoeMaher/959de109ed25e22a40ca008b19a16a2c to your computer and use it in GitHub Desktop.
Save NiallJoeMaher/959de109ed25e22a40ca008b19a16a2c to your computer and use it in GitHub Desktop.
Starter code for Clubhouse.io Storybook - Button.stories.js
import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import Button from './'
const seperatorStyles = {
height: 2,
background: '#999',
margin: '30px 0'
}
storiesOf('Button', module)
.add('Clubhouse Button', () => (
<div>
<Button onClick={action('clicked')}>Primary Button</Button>
<div style={seperatorStyles} />
<Button disabled onClick={action('clicked')}>Primary Button Disabled</Button>
<div style={seperatorStyles} />
<Button secondary onClick={action('clicked')}>Secondary Button</Button>
<div style={seperatorStyles} />
<Button secondary disabled onClick={action('clicked')}>Secondary Button Disabled</Button>
</div>
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment