DS0
Components

Tour

A step-by-step onboarding tour with progress bar, overlay, and skip functionality.

Overview

Tour provides a guided onboarding experience that highlights UI elements step-by-step. Each step spotlights a target element with a tooltip explanation, progress indicator, and navigation controls.

Usage

<Tour
  steps={[
    { target: '#sidebar', title: 'Navigation', content: 'Use the sidebar to navigate.' },
    { target: '#search', title: 'Search', content: 'Search for anything here.' },
    { target: '#profile', title: 'Profile', content: 'Manage your profile settings.' },
  ]}
  open={showTour}
  onComplete={() => setShowTour(false)}
/>

API Reference

PropTypeDefaultDescription
stepsTourStep[][]Tour step definitions
openbooleanfalseWhether tour is active
onComplete() => voidTour completion callback
onSkip() => voidSkip callback
showProgressbooleantrueShow progress bar

Accessibility

  • Spotlight overlay uses aria-modal
  • Navigation buttons have descriptive labels
  • Focus is managed to the current step tooltip
ComponentWhen to Use Instead
TooltipSingle hover hint
DialogModal information
PopoverContextual popup

On this page