Installation
Add Stepperize to a Vue project.
pnpm add @stepperize/vueRequirements
- Vue 3.5.4 or newer. The primitives use
useIdfor ids that match between the server and the client. - TypeScript 5.0 or newer for the typed ids. Nothing needs to be configured;
vue-tscand the Vue language tools check step ids and slot props in templates. In TSX (@vitejs/plugin-vue-jsx), pass slots withv-slotsto have them typed too.
@stepperize/core is installed with it. You only import from it directly to
run a flow without Vue.
Validation libraries
Step schemas use Standard Schema, so Zod, Valibot, ArkType and any other compliant library work without an adapter. Stepperize does not depend on any of them.
Composables without the components
The default entry includes the Stepper primitives. If you render your own
markup, import from /headless to leave them out of your bundle:
import { defineStepper } from "@stepperize/vue/headless";The definition is the same, without the Stepper property.
Nuxt
Nothing to configure: import defineStepper where you use it. See
Server rendering.
Edit on GitHub
Last updated on