Fix broken storybook (#3030)
This commit is contained in:
parent
3dcb5fa28f
commit
1027556614
9 changed files with 54 additions and 41 deletions
17
storybook/stories/button.story.js
Normal file
17
storybook/stories/button.story.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import React from 'react';
|
||||
import { action, storiesOf } from '@kadira/storybook';
|
||||
import Button from 'mastodon/components/button';
|
||||
|
||||
storiesOf('Button', module)
|
||||
.add('default state', () => (
|
||||
<Button text="submit" onClick={action('clicked')} />
|
||||
))
|
||||
.add('secondary', () => (
|
||||
<Button secondary text="submit" onClick={action('clicked')} />
|
||||
))
|
||||
.add('disabled', () => (
|
||||
<Button disabled text="submit" onClick={action('clicked')} />
|
||||
))
|
||||
.add('block', () => (
|
||||
<Button block text="submit" onClick={action('clicked')} />
|
||||
));
|
Loading…
Add table
Add a link
Reference in a new issue