bootstrap-switch-button-react
bootstrap-switch-button-react copied to clipboard
Bootstrap Switch Button for React
This tries to make props more consistent with React Bootstrap components. - use className instead of style - pass CSSProperties for styles [Warning not extensively tested so please test again...
src changes only (no build changes)
This is an attempt to limit the `.btn-group-xs` and `.btn-xs` css classes to apply only to the `switch` component to prevent them from interfering with bootstrap-styled components.
The css class rendered for the `switch-handle` span has a typo in it: ```html class="switch-handle btn btn-lightbtn-sm" ``` This is due to a typo in src/bootstrap-switch-button-react.js near line 114 (in...
Checked props boolean condition not working. checked={this.state.role === 'Admin'} this condition always switch is On
By default, this component manages its own internal state. The checked prop is merely used as the initial state. This becomes problematic if there's a need to remotely trigger a...
Component is not able to render a child component, for example an image inside instead of a lable. Example: ```javascript ; ```
Provide way to configure some style from component by props. Depends of #10