0.1.12 • Published 1 year ago

@web-inmars/mars-switch v0.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

mars-switch

Web component that allows us to show an accessible and beautiful switch so that users can interact

Installation

  npm i @web-inmars/mars-switch --save

Usage

<script type="module">
   import 'mars-switch/mars-switch.js';
</script>

<mars-switch id="mars-switch">
     I am a switch
</mars-switch>

Properties

PropertyAttributeTypeDefault
captioncaptionstring""
checkedcheckedbooleanfalse
disableddisabledbooleanfalse
ididstring""
labellabelstring""
namenamestring""
showCaptionshow-captionbooleanfalse
valuevaluestring""
variantvariantstring""

Events

EventType
on-changeCustomEvent<{ event: any; }>
0.1.12

1 year ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.8

2 years ago

0.1.6

2 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago