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

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago