Form Stepper
Generated from public Vue/TypeScript exports by
pnpm docs:generate. Edit source comments and stories to update this reference. Types describe the declared API; browser/device constraints are covered in the guides. This catalog reflects source commitfc6bfb108634735f1657e533206c3f8702ad357d; match your installed package and typed manifest before using an export. Source review does not establish registry-release availability.
FormStepper
import { FormStepper } from '@gxp-dev/app-ui'
Props
| Name | Type | Required / default | Description |
|---|---|---|---|
sections | FormSectionDef[] | Required | — |
backLabel | string | undefined | "Back" | — |
nextLabel | string | undefined | "Next" | — |
submitLabel | string | undefined | "Submit" | — |
showProgress | boolean | undefined | true | Hide the StepProgress header row. |
Events
| Name | Type | Required / default | Description |
|---|---|---|---|
complete | [] | — | — |
back | [] | — | — |
update:step | [step: number] | — | — |
Slots
| Name | Type | Required / default | Description |
|---|---|---|---|
stepper-actions | { next: () => Promise<void>; back: () => void; isLast: boolean; isFirst: boolean; step: number; } | — | — |
Exposed methods and values
| Name | Type | Required / default | Description |
|---|---|---|---|
next | () => Promise<void> | — | — |
back | () => void | — | — |
goTo | (index: number) => void | — | — |
current | number | — | — |
Examples
These are authored Storybook excerpts, not complete standalone modules. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.
Composition
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import { FormStepper, Form, Button } from '../../../index'
const defaultArgs = { sections: [{ id: 'profile', title: 'Profile', elements: [{ type: 'text', name: 'name', label: 'Name', required: true }] }, { id: 'details', title: 'Details', elements: [{ type: 'email', name: 'email', label: 'Email', required: true }] }] }
{ render: args => ({ components: { FormStepper, Form, Button }, setup: () => ({ args }), template: `<Form class="max-w-lg space-y-4" v-slot="{ handleSubmit }"><FormStepper v-bind="args" @complete="handleSubmit()" /></Form>` }) }