2.0.0 • Published 4 years ago

@fenderdigital/react-button v2.0.0

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
4 years ago

Button for Fender React UI Kit

Description

A button component with configurable props for setting border, font and layout styles.

Installation and Usage

yarn add @fenderdigital/react-button --save
import Button from '@fenderdigital/react-button';

Props

  • children - renders any child elements
  • color - background color of the button
  • dataId - data-id value
  • disabled - attribute to disable butto
  • fontStyles - configurable tachyon classes for the text
  • onClick - callback
  • styles - configurable tachyon classes for the button
  • type - configurable value for desired button behavior (button, submit) etc
propNamepropTypedefaultValueisRequired
childrennodenull-
colorstringred-
dataIdstringbutton-component-
disabledbooleanfalse-
fontStylesstringf6 futura-heavy ttu white-
onClickfunc() => {}-
stylesstringbn br pa3-
typestringbutton-

Development

Check the Monorepo README for development documentation.