@equinor/fusion-wc-switch
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

<fusion-wc-switch> Published on npm

Storybook

Material Web Component

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @equinor/fusion-wc-switch

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

123 kB

Total Files

14

Last publish

Collaborators

  • gustav-eikaas
  • eslsa
  • martinforre
  • _odin_