Reactstrap Button Loader
import Button from 'reactstrap-button-loader';
<Button loading={this.state.loading}>Press me!</Button>
Note: All props are optional.
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.
This prop controls Button loading state.
While loading, Button is disabled and icon provided via props is replaced with Spinner.
Buttons with icons are better!
Provided icon is shown if Button is not in a loading state. Otherwise Spinner is rendered.
Controls spinAlignment, supported values: 'left' and 'right'
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.
MIT (c) Yury Dymov (Original author)
MIT (c) Raul Lara