Add Button.stories.jsx
This commit is contained in:
24
src/browser/components/Button/Button.stories.jsx
Normal file
24
src/browser/components/Button/Button.stories.jsx
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import {storiesOf} from '@storybook/react';
|
||||||
|
|
||||||
|
import {action} from '@storybook/addon-actions';
|
||||||
|
import {Button, ButtonToolbar} from 'react-bootstrap';
|
||||||
|
|
||||||
|
storiesOf('Button', module).
|
||||||
|
add('bsStyle', () => (
|
||||||
|
<ButtonToolbar>
|
||||||
|
<Button onClick={action('clicked default')}>{'Default'}</Button>
|
||||||
|
<Button
|
||||||
|
onClick={action('clicked primary')}
|
||||||
|
bsStyle='primary'
|
||||||
|
>{'Primary'}</Button>
|
||||||
|
<Button
|
||||||
|
onClick={action('clicked danger')}
|
||||||
|
bsStyle='danger'
|
||||||
|
>{'Danger'}</Button>
|
||||||
|
<Button
|
||||||
|
onClick={action('clicked link')}
|
||||||
|
bsStyle='link'
|
||||||
|
>{'Link'}</Button>
|
||||||
|
</ButtonToolbar>
|
||||||
|
));
|
Reference in New Issue
Block a user