0.2.10 • Published 1 year ago
@web-inmars/mars-checkbox v0.2.10
mars-checkbox
Web component that allows us to show an accessible and beautiful checkbox so that users can interact
Installation
npm i @web-inmars/mars-checkbox --save
Usage
<script type="module">
import 'mars-checkbox/mars-checkbox.js';
</script>
<mars-checkbox id="marsCheckbox">
I'm a checkbox
</mars-checkbox>
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; }> |