1.0.27 • Published 6 years ago

@ptadmin/toggle-switch v1.0.27

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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

1.0.27

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago