reactstrap-button-loader

Reactstrap Button Loader

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
reactstrap-button-loader
201.0.154 years ago4 years agoMinified + gzip package size for reactstrap-button-loader in KB

Readme

react-bootstrap-button-loader
Reactstrap Button Loader
react-bootstrap-button-loader
npm version Downloads Build Status Coverage Status
Usage Example
import Button from 'reactstrap-button-loader';

<Button loading={this.state.loading}>Press me!</Button>
Configurable Props
Note: All props are optional.

disabled: boolean, default: false

Set this prop true to disable button.
Note: button in loading state is disabled and this behavior is not overridable even if false value is explicitly provided.

loading: boolean, default: false

This prop controls Button loading state.
While loading, Button is disabled and icon provided via props is replaced with Spinner.

icon: node, default: null

Buttons with icons are better!
Provided icon is shown if Button is not in a loading state. Otherwise Spinner is rendered.

spinAlignment: string, default 'left'

Controls spinAlignment, supported values: 'left' and 'right'

spinColor: string, default: '#fff'

Spinner color for loading state.
While white color used by default works fine for most cases, for different bootstrap themes and bsStyles it might be better to use other colors instead.
License
MIT (c) Yury Dymov (Original author)
MIT (c) Raul Lara