Step Flow
A multi-step flow in a frosted panel: a row of numbered steps with a pill that slides to the active one, content that slides or fades while the height animates, and Back and Continue buttons.
pixikit.com/docs/components/step-flow
Customize
Indicator
Orientation
Transition
Linear
Disable step indicators
Show footer
Accent color
Frame
Radius24px
Width440px
Props
28| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | None | The steps. Wrap each one in Step, which can also take a title, description and icon. |
step | number | None | Controls the current step yourself. Use it with onStepChange. |
initialStep | number | 1 | The step shown first. |
onStepChange | (step: number) => void | None | Called when the step changes. |
onFinalStepCompleted | () => void | None | Called when the last step is completed. |
indicator | "numbers" | "dots" | "bars" | "numbers" | Style of the step indicators in the horizontal layout. |
orientation | "horizontal" | "vertical" | "horizontal" | Indicators across the top, or a rail of numbered steps beside the content. |
transition | "slide" | "fade" | "none" | "slide" | How the content changes between steps. The height always animates. |
linear | boolean | false | Only lets the indicators jump back to steps that have been reached. |
disableStepIndicators | boolean | false | Stops the indicators from changing the step when clicked. |
renderStepIndicator | (state: { step: number; currentStep: number; onStepClick: (step: number) => void }) => ReactNode | None | Renders your own numbered indicator. |
showFooter | boolean | true | Shows the Back and Continue buttons. |
backButtonText | string | "Back" | Text of the Back button. |
nextButtonText | string | "Continue" | Text of the Continue button. |
completeButtonText | string | "Complete" | Text of the Continue button on the last step. |
backButtonProps | ButtonHTMLAttributes<HTMLButtonElement> | {} | Extra props for the Back button. |
nextButtonProps | ButtonHTMLAttributes<HTMLButtonElement> | {} | Extra props for the Continue button, such as disabled while a step is incomplete. |
completedContent | ReactNode | None | Shown in place of the steps once the last one is completed. |
theme | "dark" | "light" | "dark" | Color theme of the panel and controls. |
accentColor | string | None | Color of completed steps, the progress lines and the Continue button. |
frame | boolean | true | Shows the frosted panel around the stepper. |
radius | number | 24 | Corner radius of the panel, in px. |
width | number | string | 440 | Maximum width of the stepper. |
className | string | "" | |
stepContainerClassName | string | "" | Extra class names for the indicator row. |
contentClassName | string | "" | Extra class names for the content area. |
footerClassName | string | "" | Extra class names for the footer. |
style | CSSProperties | None |