1
1
mirror of https://github.com/primer/css.git synced 2025-01-06 05:33:07 +03:00
css/modules/primer-buttons/stories.js

64 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-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>
))
.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>
<button className="btn btn-large" type="button">Large button button</button>
2017-10-27 17:04:29 +03:00
</div>
))
.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>
))