1.1.2 • Published 3 years ago

vue-stepper-touch v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vue-stepper-touch


Stepper Touch for Vue 3 based on a Dribbble showcase designed by Oleg Frolov and coded in vanilla JavaScript by Marvin Rudolph


Horizontal view

Horizontal Stepper

Vertical view

Vertical Stepper

Installation


Install the component into your repo/app

npm i vue-stepper-touch

Import component in your template

import VueStepperTouch from 'vue-stepper-touch'

Usage


<VueStepperTouch
    class="m-1 px-3 border border-collapse border-black-900 text-center"
    axis="x"
    background="#6d72fe"
    color="#ffffff"
    fontFamily="Poppins"
    :opacity=25
    :min=0
    :max=100
    :initialValue=0
    :size=4
    @valueChange="changeValue"
/>

Props configuration

PropTypeDescription
classStringadd any css class you prefer for the component formating, it supports tailwind.css
axisStringthe axis direction of the component, can take x for horizontal or y for vertical rendering
backgroundStringthe hex colour code for the background of the element e.g. #ffffff
colorStringthe hex colour code for the indicator and the plus minus parts e.g. #333333
fontFamilyStringthe font type of the numeric indicator value e.g. Arial
opacityNumberthe alpha opacity color that applies on the stepper element as background based on color can take values from 0 to 100
minNumberthe minimum value that the counter can take
maxNumberthe maximum value that the counter can take
initialValueNumberthe initial value that the counter will take on first load
sizeNumberthe size of the stepper element in rem's e.g. : 3.5 or 3
@valueChangeCallbackevent listener with a callback function that accepts a payload as parameter which includes the changed value e.g. : a method like : changeValue(payload) { return payload.value }
1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago