npm install @equinor/fusion-wc-switch
<fwc-switch value='value' checked/>
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. |
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. |