1.0.6 • Published 6 years ago

neat-react-button v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

neat-react-button

neat-react-button is a button component that makes button creation a breeze

Showtime logo

Installation

yarn add neat-react-button or npm install neat-react-button

Work in Progress

Implemented as a handy tool and any pull requests welcomed!

Usage

Import neat-react-button in your React component:

import Button from 'neat-react-button'

Color Props

there are currenctly four colors optional, primary(blue) the default one, success(green), info(white whith black font), and danger(red)

Size Props

There are currently three sizes optional, sm, md(default) and lg.

Element

The button becomes anchor if there is a link existing. Otherwise a button.

Supported props

PropTypeDefaultDescription
sizestringmdButton size
colorstringprimarycolors described by keywords
elementstringbuttonType of element
textstringdefault textThe buttons's text
disabledboolfalseto disable button
debouncenumber0Interrupts button click in ms
onClickfunction()=>{}fired after click
btntypestring arraybuttonbutton, submit, reset

You can find example of usage in the demo directory, which you can run in a local development server using npm start or yarn run start

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago