react-bootstrap-button-loader-forked
React ButtonLoader with Bootstrap flavor
Last updated 3 years ago by joelfsreis .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-bootstrap-button-loader-forked 
SYNC missed versions from official npm registry.

react-bootstrap-button-loader

Bootstrap Button with Spinner feature

react-bootstrap-button-loader

npm version Downloads Build Status Coverage Status

Demo

Demo and playground are available here

Usage Example

import Button from 'react-bootstrap-button-loader';

<Button loading={this.state.loading}>Press me!</Button>

Configurable Props

Note: All props are optional.

bsStyle: string, default: 'default'

Bootstrap style, supported values: default, primary, success, info, warning, danger, link.

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.

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

Current Tags

  • 1.1.2                                ...           latest (3 years ago)

2 Versions

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

Copyright 2014 - 2016 © taobao.org |