1.2.0 • Published 6 years ago

reactstrap-action-button v1.2.0

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

Reactstrap Action Button

A React component to represent a button that includes a load animation when executing an action

Requirements

Reactstrap

Usage

npm i reactstrap-action-button

import ReactActionButton from "reactstrap-action-button";

<ReactActionButton
  type="button"
  size="lg"
  color="primary"
  onClick={this.yourFunc}
  icon="fa fa-save"
  text="Save"
  saving={this.state.savingState}
/>

Props

PropDescriptionTypeDefaultAvailable Values
typetype of buttonstringbuttonbutton - submit
sizesize of buttonstringlglg - md - sm
colorcolor of buttonstringprimarysecondary - primary - success - info - warning - danger
iconicon of buttonstringfa fa-saveany icon
texttext of buttonstringGuardar*
waitingTextwaiting text of buttonstringGuardando...*
onClickaction func of buttonfuncnoneany func
savingindicates that onClick is runningboolfalsetrue - false
disabledindicates that the button is disabledboolfalsetrue - false
1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago