1.4.0 • Published 5 months ago

@czkoudy/toggle-switch v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@czkoudy/toggle-switch

Toggle Switch Component for React

Using CSS file made by Bootstrap Toggle: bootstrap4-toggle.css v3.6.1

https://gitbrent.github.io/bootstrap4-toggle/

Stargazers Issues

NPM JavaScript Style Guide

Downloads

⚙️Install

npm install --save @czkoudy/toggle-switch

📓Usage

import ToggleSwitch from '@czkoudy/toggle-switch';

return <ToggleSwitch />;

⚓ ToggleSwitch props

| Name     | Type    | Required | Default   | Options             |
| -------- | ------- | -------- | --------- | ------------------- |
| size     | string  | No       | "sm"      | "xs" , "sm", "lg"   |
| onStyle  | string  | No       | "success" | Any Boostrap colors |
| offStyle | string  | No       | "danger"  | Any Boostrap colors |
| onLabel  | string  | No       | "On"      | Any String          |
| offLabel | string  | No       | "Off"     | Any String          |
| checked  | boolean | No       | false     | true, false         |
| width    | string  | No       | "150px"   | Any px string       |
| disabled | boolean | No       | false     | true, false         |

👮‍♀️ License

MIT
1.4.0

5 months ago

1.3.4

11 months ago

1.3.3

11 months ago

1.2.0

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.3.2

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.9

1 year ago

1.2.10

1 year ago

1.0.0

2 years ago

0.0.1

2 years ago