1.0.27 • Published 4 years ago

@ptadmin/toggle-switch v1.0.27

Weekly downloads
-
License
ISC
Repository
-
Last release
4 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

4 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago