@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