Blossom UI

Stepper

Stepper component, horizontal, vertical or segmented, to guide users through multi step processes.

How to use it

Run npx @blossomui/react add stepper, or copy src/components/UI/Stepper/Stepper.tsx into your React project and import it.

import { Stepper, StepperProgress } from './components/ui/Stepper'

Props

Step

PropTypeDescription
title (required)string
descriptionReactNodeShort text under the title (vertical orientation only).
contentReactNodeExtra content shown under the step, such as a code block or a form (vertical orientation only).

StepperProps

PropTypeDescription
colorstringAccent color of this component: any CSS color. Without it the component uses `--blossom-accent`, which is pink by default.
steps (required)Step[]
current (required)numberIndex of the current step, starting at 0. Previous steps are shown as completed.
orientation'horizontal' | 'vertical'
numberedbooleanShows every step numbered and highlighted without tracking progress. Useful for instructions.
onStepClick(index: number) => voidMakes the completed steps clickable so the user can go back.

StepperProgressProps

PropTypeDescription
labels{ step?: (current: number, total: number) => string }Texts of the component. Pass only the ones you want to change, for example to translate it.
colorstringAccent color of this component: any CSS color. Without it the component uses `--blossom-accent`, which is pink by default.
total (required)number
current (required)number
labelstring

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree