@web-inmars/mars-switch
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

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

Property Attribute Type Default
caption caption string ""
checked checked boolean false
disabled disabled boolean false
id id string ""
label label string ""
name name string ""
showCaption show-caption boolean false
value value string ""
variant variant string ""

Events

Event Type
on-change CustomEvent<{ event: any; }>

Readme

Keywords

none

Package Sidebar

Install

npm i @web-inmars/mars-switch

Weekly Downloads

11

Version

0.1.12

License

MIT

Unpacked Size

34.1 kB

Total Files

9

Last publish

Collaborators

  • marcelagotta