1.0.7 • Published 2 years ago

@financial-times/editorial-o-button v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@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