2.0.0 • Published 4 years ago
@fenderdigital/react-button v2.0.0
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 elementscolor
- background color of the buttondataId
- data-id valuedisabled
- attribute to disable buttofontStyles
- configurable tachyon classes for the textonClick
- callbackstyles
- configurable tachyon classes for the buttontype
- configurable value for desired button behavior (button, submit) etc
propName | propType | defaultValue | isRequired |
---|---|---|---|
children | node | null | - |
color | string | red | - |
dataId | string | button-component | - |
disabled | boolean | false | - |
fontStyles | string | f6 futura-heavy ttu white | - |
onClick | func | () => {} | - |
styles | string | bn br pa3 | - |
type | string | button | - |
Development
Check the Monorepo README for development documentation.