Skip to content

Instantly share code, notes, and snippets.

@ernestofreyreg
Created August 4, 2017 09:28
Show Gist options
  • Save ernestofreyreg/e57c40167705f677dd44382f91d0b17c to your computer and use it in GitHub Desktop.
Save ernestofreyreg/e57c40167705f677dd44382f91d0b17c to your computer and use it in GitHub Desktop.
import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import { linkTo } from '@storybook/addon-links'
import {Button} from '../src/index'
storiesOf('Button', module)
.add('simple text', () => <Button title='Hello Button' onClick={action('clicked Hello Button')} />)
.add('with some emoji', () => <Button title='πŸ˜€ 😎 πŸ‘ πŸ’―' onClick={action('clicked Emojis')} />)
.add('urgent text prefix', () => <Button title='!Cancel' onClick={action('clicked !Cancel')} />)
.add('urgent text sufix', () => <Button title='Cancel!' onClick={action('clicked Cancel!')} />)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment