Created
August 4, 2017 09:28
-
-
Save ernestofreyreg/e57c40167705f677dd44382f91d0b17c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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