Socket
Socket
Sign inDemoInstall

essence-switch

Package Overview
Dependencies
46
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    essence-switch

Essence Switch - Switch component


Version published
Weekly downloads
2
decreased by-89.47%
Maintainers
3
Install size
8.83 MB
Created
Weekly downloads
 

Readme

Source

Essence Switch - Switch component

Options:
  • type: switches, radio, checkbox (default)
  • text: string for checkbox label
  • beforeText: string for switches position on left side
  • afterText: string for switches position on right side
  • onChange: callback function on Switch value change

NOTE: all props will be transferred from Switch to component input

How to use

import Switch from 'essence-switch';

<Switch type={'checkbox'} text={'Default checkbox'} name={'switch-uncheckbox'} />
<Switch type={'radio'} text={'1st option'} name={'switch-radio'} />
<Switch type={'radio'} text={'2nd option'} name={'switch-radio'} />
<Switch type={'switches'} afterText={'ON'} beforeText={'OFF'} name={'switch-switches'} />

Keywords

FAQs

Last updated on 13 Jun 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc