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