React Switch Button control

React Switch Button control


Project maintained by gfazioli Hosted on GitHub Pages — Theme by mattgraham

Welcome to React Switch Button control.

This is a React UI component used to display a switch (swipe) button control. It used a simple input type checkbox with special wrap HTML markup.

<SwitchButton />

<SwitchButton name="my-switch" />

<SwitchButton label="Click Me" name="my-switch" />

<SwitchButton defaultChecked="checked" label="Click Me" name="my-switch" />

<SwitchButton defaultChecked="checked" label_right="Click Me on the right" name="my-switch" />

Designer Templates

Currently I have one simple theme. You can set the theme class in theme props attribute. Default rsbc-switch-button-flat-round:


<SwitchButton theme="my-theme-class" name="my-switch" />

Online Demo

Support or Contact

Having trouble with Pages? Check out the documentation at https://github.com/gfazioli/react-switch-button or contact g.fazioli@wpxtre.me and we’ll help you sort it out.