2017-08-15 00:45:02 +03:00
|
|
|
import React from 'react'
|
|
|
|
import { storiesOf } from '@storybook/react'
|
|
|
|
|
|
|
|
storiesOf('Button', module)
|
2017-09-03 00:54:27 +03:00
|
|
|
.add('btn', () => (
|
2017-08-15 00:45:02 +03:00
|
|
|
<button className='btn'>Button</button>
|
|
|
|
))
|
2017-09-03 00:36:08 +03:00
|
|
|
.add('btn-primary', () => (
|
2017-08-15 00:45:02 +03:00
|
|
|
<div className='p-4 d-flex flex-justify-between'>
|
|
|
|
<button className='btn btn-primary'>Button</button>
|
2017-09-03 20:53:30 +03:00
|
|
|
<button className='btn btn-primary hover'>hover</button>
|
|
|
|
<button className='btn btn-primary focus'>focus</button>
|
|
|
|
<button className='btn btn-primary selected'>selected</button>
|
|
|
|
<button className='btn btn-primary disabled'>disabled</button>
|
2017-08-15 00:45:02 +03:00
|
|
|
</div>
|
|
|
|
))
|
2017-09-03 00:36:08 +03:00
|
|
|
.add('btn-danger', () => (
|
2017-08-15 00:45:02 +03:00
|
|
|
<div className='p-4 d-flex flex-justify-between'>
|
|
|
|
<button className='btn btn-danger'>Button</button>
|
2017-09-03 20:53:30 +03:00
|
|
|
<button className='btn btn-danger hover'>hover</button>
|
|
|
|
<button className='btn btn-danger focus'>focus</button>
|
|
|
|
<button className='btn btn-danger selected'>selected</button>
|
|
|
|
<button className='btn btn-danger disabled'>disabled</button>
|
2017-08-15 00:45:02 +03:00
|
|
|
</div>
|
|
|
|
))
|
2017-09-03 00:36:08 +03:00
|
|
|
.add('btn-outline', () => (
|
2017-08-15 00:45:02 +03:00
|
|
|
<div className='p-4 d-flex flex-justify-between'>
|
|
|
|
<button className='btn btn-outline'>Button</button>
|
2017-09-03 20:53:30 +03:00
|
|
|
<button className='btn btn-outline hover'>hover</button>
|
|
|
|
<button className='btn btn-outline focus'>focus</button>
|
|
|
|
<button className='btn btn-outline selected'>selected</button>
|
|
|
|
<button className='btn btn-outline disabled'>disabled</button>
|
2017-08-15 00:45:02 +03:00
|
|
|
</div>
|
|
|
|
))
|
2017-09-03 00:36:08 +03:00
|
|
|
.add('btn-blue', () => (
|
2017-08-15 00:45:02 +03:00
|
|
|
<div className='p-4 d-flex flex-justify-between'>
|
|
|
|
<button className='btn btn-blue'>Button</button>
|
2017-09-03 20:53:30 +03:00
|
|
|
<button className='btn btn-blue hover'>hover</button>
|
|
|
|
<button className='btn btn-blue focus'>focus</button>
|
|
|
|
<button className='btn btn-blue selected'>selected</button>
|
|
|
|
<button className='btn btn-blue disabled'>disabled</button>
|
2017-08-15 00:45:02 +03:00
|
|
|
</div>
|
|
|
|
))
|
2017-09-03 00:36:08 +03:00
|
|
|
.add('btn-purple', () => (
|
2017-08-15 00:45:02 +03:00
|
|
|
<div className='p-4 d-flex flex-justify-between'>
|
|
|
|
<button className='btn btn-purple'>Button</button>
|
2017-09-03 20:53:30 +03:00
|
|
|
<button className='btn btn-purple hover'>hover</button>
|
|
|
|
<button className='btn btn-purple focus'>focus</button>
|
|
|
|
<button className='btn btn-purple selected'>selected</button>
|
|
|
|
<button className='btn btn-purple disabled'>disabled</button>
|
2017-08-15 00:45:02 +03:00
|
|
|
</div>
|
|
|
|
))
|
2017-11-07 07:29:28 +03:00
|
|
|
.add('btn-large', () => (
|
|
|
|
<div className='f3 p-4'>
|
|
|
|
<a className="btn btn-large btn-purple mr-6" href="#url" role="button">Large link button</a>
|
2018-06-21 00:02:03 +03:00
|
|
|
<button className="btn btn-large" type="button">Large button button</button>
|
2017-10-27 17:04:29 +03:00
|
|
|
</div>
|
|
|
|
))
|
2017-11-08 19:39:48 +03:00
|
|
|
.add('btn-link', () => (
|
2017-11-09 02:08:23 +03:00
|
|
|
<div className='p-4 d-flex flex-justify-between'>
|
|
|
|
<button className='btn-link'>Button</button>
|
|
|
|
</div>
|
2017-11-08 19:39:48 +03:00
|
|
|
))
|