Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mintlify/components/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Steps component displays a vertical list of sequential steps with automatic numbering, connecting lines, and support for custom icons. It’s ideal for tutorials, installation guides, and multi-step processes.Basic Usage
Props
Steps Container
One or more
Steps.Item components. Each item represents a step in the sequence.Default title size for all steps. Can be overridden per step. Use
h2 or h3 to enable anchor link functionality.Additional CSS classes to apply to the steps container.
Steps.Item
The title of the step. Can be a string or React element for custom styling.
The content of the step. Supports any valid React content including text, code blocks, lists, and more.
Custom step number to display. By default, steps are numbered automatically starting from 1.
Custom icon to display instead of the step number. Can be:
- A string icon name from FontAwesome or Lucide (use with
iconTypeandiconLibrary) - A React component or element
iconType
'brands' | 'duotone' | 'light' | 'regular' | 'sharp-duotone-solid' | 'sharp-light' | 'sharp-regular' | 'sharp-solid' | 'sharp-thin' | 'solid' | 'thin'
The FontAwesome icon style type when using a string icon.
The icon library to use for string icons.
Size of the step title. Overrides the container’s
titleSize. When set to h2 or h3, enables anchor link functionality.Additional CSS classes to apply to the step item.
Custom ID for the step, used for anchor links. Only functional when
titleSize is h2 or h3.Disable anchor link functionality even when
titleSize is h2 or h3.Automatically set by the parent container. Indicates if this is the last step in the sequence (affects the connecting line styling).
Examples
Basic Steps with Auto-numbering
Steps with Icons
Custom Step Numbers
Large Titles with Anchor Links
Rich Content
Custom Icon Type and Library
ReactNode Title
Mixed Title Sizes
Features
Automatic Numbering
Steps are automatically numbered starting from 1. You can override this with thestepNumber prop.
Connecting Lines
Vertical lines automatically connect steps. The line fades out on the last step for a polished look.Anchor Links
When usingtitleSize="h2" or titleSize="h3" with an id prop:
- Hovering over the step number shows a link icon
- Clicking copies the anchor URL to clipboard
- Supports deep linking to specific steps
Dark Mode
Full dark mode support with automatic color adjustments for:- Step numbers
- Connecting lines
- Title and content text
- Background colors
Accessibility
The Steps component includes:- Semantic
role="list"androle="listitem"attributes - Proper aria-labels for anchor links
- Keyboard navigation support for interactive elements
- Focus visible states for accessibility