@equinor/fusion-wc-switch
v1.1.2
Published
Switch web component based on Material UI
Downloads
341
Keywords
Readme
<fusion-wc-switch>
Installation
npm install @equinor/fusion-wc-switch
Example Usage
<fwc-switch value='value' checked/>
Properties/Attributes
| Name | Type | Default | Description
| ---------- | --------- | ------- | -----------
| checked
| boolean
| false
| Whether or not the switch should be checked / activated.
| disabled
| boolean
| false
| Disables the input and sets the disabled styles.
Events
| Event Name | Target | Detail | Description
| ---------- | -------------- | ------ | -----------
| change
| fwc-switch
| {}
| Fired when the user modifies the switch checked
state from an input device interaction. Note that, like native <input>
, the change
event is not fired when the checked
property is set from JavaScript.