@financial-times/editorial-o-button

1.0.7 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/editorial-o-button

Weekly Downloads

48

Version

1.0.7

License

ISC

Unpacked Size

480 kB

Total Files

7

Last publish

Collaborators

  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson