@financial-times/editorial-o-button

Origami button for React

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@financial-times/editorial-o-button
1.0.75 months agoa year agoMinified + gzip package size for @financial-times/editorial-o-button in KB

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:
  • ALLOWEDICONS in Button.js
  • \$icons in Button.scss