README.md 642 Bytes

paper-toggle-button

paper-toggle-button provides a ON/OFF switch that user can toggle the state by tapping or by dragging the swtich.

Example:

<paper-toggle-button></paper-toggle-button>

Styling toggle-button:

<style is="custom-style">
  * {
    --paper-toggle-button-unchecked-bar-color: #FF4081;
    --paper-toggle-button-unchecked-button-color: #9c27b0;
    --paper-toggle-button-unchecked-ink-color: #009688;
    --paper-toggle-button-checked-bar-color: #5677fc;
    --paper-toggle-button-checked-button-color: #ff4081;
    --paper-toggle-button-checked-ink-color: #ff4081;
  }
</style>