reactstrap-button-loader
Reactstrap Button Loader
Last updated 2 years ago by raullg98 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install reactstrap-button-loader 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.15                                ...           latest (2 years ago)

3 Versions

  • 1.0.15                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (17)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |