2019-12-09 13:17:51 +05:30
|
|
|
import React from 'react';
|
|
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
|
|
|
|
import Button from './Button';
|
|
|
|
|
2020-01-16 00:45:04 +05:30
|
|
|
storiesOf('UI/Form', module).add('Button', () => (
|
2020-05-24 04:38:24 +05:30
|
|
|
<>
|
|
|
|
<div>
|
2020-07-22 16:50:10 +05:30
|
|
|
<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>
|
2020-07-22 16:50:10 +05:30
|
|
|
<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>
|
2020-07-22 16:50:10 +05:30
|
|
|
<Button>Default button</Button> <Button small>Small button</Button> <br />
|
2020-05-24 04:38:24 +05:30
|
|
|
<br />
|
2020-07-22 16:50:10 +05:30
|
|
|
<Button block>Block button</Button>
|
2020-05-24 04:38:24 +05:30
|
|
|
<br />
|
2020-07-22 16:50:10 +05:30
|
|
|
<Button small block>
|
|
|
|
Small block button
|
|
|
|
</Button>
|
2020-05-24 04:38:24 +05:30
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>Loading button</h2>
|
2020-07-22 16:50:10 +05:30
|
|
|
<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
|
|
|
));
|