0.2.1 • Published 5 years ago

vue-switch-button v0.2.1

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

npm version Build Status

Vue Switch Button

Accessible toggle switch button, see https://inclusive-components.design/toggle-button/

Screenshot

Demo

Installation:

npm install vue-switch-button --save

Usage

<switch-button value="true"> 
    Notify by mounted messenger
</switch-button>

<switch-button v-model="email">
    Notify by email
</switch-button>

<switch-button v-model="pidgeon" on-label="Yes" off-label="No">
  Notify by pidgeon
</switch-button>

Properties

NameTypeDefaultDescription
valueBooleanfalseInitial state of the toggle button
onLabelString"on"Label for checked state
offLabelString"off"Label for unchecked state

Events

NameDescription
clickTriggered whenever state of the component changes.
0.2.1

5 years ago

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago