accounts-frontend/packages/app/components/ui/form/Button.story.tsx

83 lines
2.8 KiB
TypeScript
Raw Normal View History

2019-12-09 13:17:51 +05:30
import React from 'react';
import { storiesOf } from '@storybook/react';
import Button from './Button';
storiesOf('UI/Form', module).add('Button', () => (
2020-05-24 04:38:24 +05:30
<>
<div>
<Button>Green Button</Button> <Button color="blue">Blue Button</Button>{' '}
<Button color="darkBlue">DarkBlue Button</Button> <Button color="violet">Violet Button</Button>{' '}
<Button color="lightViolet">LightViolet Button</Button> <Button color="orange">Orange Button</Button>{' '}
<Button color="red">Red Button</Button> <Button color="black">Black Button</Button>{' '}
<Button color="white">White Button</Button>
2020-05-24 04:38:24 +05:30
</div>
<div>
<h2>Disabled buttons</h2>
<Button disabled>Green Button</Button>
<Button disabled color="blue">
Blue Button
</Button>{' '}
<Button disabled color="darkBlue">
DarkBlue Button
</Button>{' '}
<Button disabled color="violet">
Violet Button
</Button>{' '}
<Button disabled color="lightViolet">
LightViolet Button
</Button>{' '}
<Button disabled color="orange">
Orange Button
</Button>{' '}
<Button disabled color="red">
Red Button
</Button>{' '}
<Button disabled color="black">
Black Button
</Button>{' '}
<Button disabled color="white">
White Button
</Button>
2020-05-24 04:38:24 +05:30
</div>
<div>
<h2>Button sizes</h2>
<Button>Default button</Button> <Button small>Small button</Button> <br />
2020-05-24 04:38:24 +05:30
<br />
<Button block>Block button</Button>
2020-05-24 04:38:24 +05:30
<br />
<Button small block>
Small block button
</Button>
2020-05-24 04:38:24 +05:30
</div>
<div>
<h2>Loading button</h2>
<Button loading>Green Button</Button>{' '}
<Button loading color="blue">
Blue Button
</Button>{' '}
<Button loading color="darkBlue">
DarkBlue Button
</Button>{' '}
<Button loading color="violet">
Violet Button
</Button>{' '}
<Button loading color="lightViolet">
LightViolet Button
</Button>{' '}
<Button loading color="orange">
Orange Button
</Button>{' '}
<Button loading color="red">
Red Button
</Button>{' '}
<Button loading color="black">
Black Button
</Button>{' '}
<Button loading color="white">
White Button
</Button>
2020-05-24 04:38:24 +05:30
</div>
</>
2019-12-09 13:17:51 +05:30
));