@financial-times/editorial-o-button
v1.0.7
Published
Origami button for React
Downloads
302
Maintainers
Keywords
Readme
@financial-times/editorial-o-button
React implementation of o-buttons
Usage
import { Button } from '@financial-times/editorial-o-button';
<Button
big
primary
inverse
className="my-extra-class"
onClick={doSomething}
>Button Text</Button>
Button with icons
<Button
primary
icon="arrow-left"
>Previous</Button>
To add more origami-supported icons, add the icon to:
- ALLOWED_ICONS in Button.js
- $icons in Button.scss