Design System
Tour
Self-guided walkthrough component to guide users through UI elements
Tour Component
The Tour component highlights elements marked with matching data-tour-id
attributes and displays a guided overlay with navigation controls.
Usage
Props
Name | Type | Description |
---|---|---|
steps | TourStep[] | Steps array with identifiers, titles, and descriptions |
children | ReactNode | Container elements that may include highlighted elements |
TourStep Type
The TourStep
type defines the shape of each step passed to the steps
prop.
Field | Type | Description |
---|---|---|
id | string | A unique identifier that must match the data-tour-id attribute on the element you want to highlight. |
title | string | The heading displayed in the tooltip bubble for this step. |
description | string | A short explanatory text shown under the title inside the tooltip. |