1
1
mirror of https://github.com/primer/css.git synced 2024-12-25 15:14:59 +03:00
css/.storybook/Button.js

62 lines
2.6 KiB
JavaScript
Raw Normal View History

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>
<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-secondary', () => (
2017-08-15 00:45:02 +03:00
<div className='p-4 d-flex flex-justify-between'>
<button className='btn btn-secondary'>Button</button>
<button className='btn btn-secondary hover'>hover</button>
<button className='btn btn-secondary focus'>focus</button>
<button className='btn btn-secondary selected'>selected</button>
<button className='btn btn-secondary 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>
<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>
<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>
<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>
<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>
))