Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (19 loc) · 512 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 512 Bytes

Happy React Switch npm

A simple switch component in React

Installation

yarn add happy-react-switch
# or
npm i happy-react-switch

Demo

Edit Happy react Toggle

Options

HappySwitch.propTypes = {
  on: PropTypes.bool.isRequired,
  disabled: PropTypes.bool,
  onClick: PropTypes.func.isRequired,
  small: PropTypes.bool,
};