@ptadmin/toggle-switch

1.0.27 • Public • Published

ToggleSwitch

ToggleSwitch is a component that renders a toggle switch (on/off) that uses MaterialUI Toggle.

Usage

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

<ToggleSwitch />

Props

labelLeft (string): Label for the left (off) state of the switch
labelRight (string): Label for the right (on) state of the switch
toggle (boolean): Current state of the switch (on/off)
toggleAction (function ()): Function to switch the current state of the switch

Readme

Keywords

none

Package Sidebar

Install

npm i @ptadmin/toggle-switch

Weekly Downloads

10

Version

1.0.27

License

ISC

Unpacked Size

8.92 kB

Total Files

4

Last publish

Collaborators

  • s.ford
  • polah
  • nunobettencourt
  • gabriellaal
  • henry.miller
  • raj.thota