Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-bootstrap-toggle

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap-toggle

A React version of the bootstrap-toggle without the JQuery dependency

  • 1.0.181
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React-Bootstrap-Toggle

This is a react component of the http://www.bootstraptoggle.com/ project.

You need to include the bootstrap css file and also the bootstrap2-toggle css file in your app.

If you are using the npm version then you can include it from the module like this.

<link rel="stylesheet" href="node_modules/lib/bootstrap2-toggle.css">

Or you could import it to your SASS or LESS build.

@import "node_modules/lib/bootstrap2-toggle.css";

NPM

npm install react-bootstrap-toggle --save

Props

width

Defaults to a 100 px width

height

Default to 35 px width

on

Defaults to 'On', takes in any renderable node

off

Defaults to 'Off', takes in any renderable node

onstyle

Defaults to btn-primary, pass in any class name to change the style

offstyle

Defaults to btn-default...

active

Defaults to true

disabled

Defaults to false

size

Defaults to the standard size, changes the btn class to btn-lg etc..

onChange

Invoked when the component state changes.

Keywords

FAQs

Package last updated on 23 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc