
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
simple-vue-stepper
Advanced tools
The component source code took from: https://github.com/adi518/vue-stepper and modify style to look alike Bootstrap
npm i simple-vue-stepper
To use the component in your templates, simply import and register with your component. To control the Stepper state, we use the v-model directive, just like on any other input element with two-way binding.
Template
<v-stepper ref="stepper" :steps="steps" v-model="step"></v-stepper>
<template v-if="step === 1"><!-- Step 1 Content --></template>
<template v-if="step === 2"><!-- Step 2 Content --></template>
<template v-if="step === 3"><!-- Step 3 Content --></template>
<!-- Stepper Controls -->
<button type="button" @click="$refs.stepper.previous()">Previous</button>
<button type="button" @click="$refs.stepper.next()">Next</button>
<button type="button" @click="$refs.stepper.reset()">Reset</button>
Script
import { VStepper } from 'vue-stepper-component'
export default {
components: {
VStepper
},
data: () => ({ steps: 3, step: undefined })
}
/**
* Contains the current step value. Very similar to a
* `value` attribute on an input. In most cases, you'll want
* to set this as a two-way binding, using the `v-model` directive.
* @type {Number||undefined||null}
*/
value: {
type: Number,
default: 1
},
/**
* Contains the steps count.
* @type {Number}
*/
steps: {
type: Number,
default: 0
},
/**
* Sets up the Stepper in either
* linear or random mode.
* @type {Boolean}
*/
linear: {
type: Boolean,
default: false
},
/**
* Sync state with storage?
* @type {Boolean}
*/
persist: {
type: Boolean,
default: false
},
/**
* Which Storage API to use.
* Should be used with `persist` prop.
* @type {String}
*/
storekeeper: {
type: String,
default: 'localStorage',
validator(value) {
return ['localStorage', 'sessionStorage'].includes(value)
}
},
/**
* Add/Remove a divider to/from each Step component.
* @type {Boolean}
*/
withDivider: {
type: Boolean,
default: true
},
/**
* Steps wrapper component.
* @type {Object}
*/
rootComponent: {
type: Object,
default: () => VStepperRoot
},
/**
* Sets up debug mode, which reveals
* the actual radio-button behind each step.
* @type {Boolean}
*/
debug: {
type: Boolean,
default: false
}
npm install
npm run serve
npm run build-lib
npm run lint
``
FAQs
Simple Vue Stepper Component
The npm package simple-vue-stepper receives a total of 24 weekly downloads. As such, simple-vue-stepper popularity was classified as not popular.
We found that simple-vue-stepper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.