0.1.1 • Published 5 years ago

vue-toggle-slider v0.1.1

Weekly downloads
4
License
-
Repository
-
Last release
5 years ago

vue-toggle-button

An Highly Customizable, easy-to-use elegant toggle/switch button component

Feedback would be much appreciated, questions, suggestions, issues are more than welcome.

Properties

options is a style configuration object holding the toggle-button building blocks which are handle and track

propertyTypeDescription
optionsobjectholds all toggle button style configurations
handleobjectholds all handle style configurations
trackobjectholds all track style configurations

handle

propertyTypeDefaultDescription
diameternumber30Sets the handle diameter (the round button moving)
colorstring#fffSets the handle color
borderRadiusstring50%Sets the handle border radius

track

propertyTypeDefaultDescription
widthnumber70Sets the track width
heightnumber30Sets the track height
colorstring#cccSets the default track color
activeColorstring#2196F3Sets the active status track color(after toggled)
borderWidthnumber0Sets the track border width
borderRadiusstring34pxSets the track border radius