Docs
Components
Spotlight Chain

The Spotlight Chain

<SpotlightChain> sequences multiple targeted hints across your UI.

It is useful for guided discovery without a full tour dialog.

Usage

onboarding-chain.tsx
import { SpotlightChain } from 'featuredrop/react'
 
const steps = [
  {
    id: 'targeting',
    target: '#segment-target',
    title: 'Audience targeting',
    content: 'Define rollout segments before launch.'
  },
  {
    id: 'measure',
    target: '#segment-measure',
    title: 'Measure impact',
    content: 'Track interaction rates after launch.'
  }
]
 
<SpotlightChain steps={steps} startOnMount />

Key props

PropTypeNotes
stepsSpotlightChainStep[]Required sequence
startOnMountbooleanStart automatically
autoAdvancebooleanStep progression timer
autoAdvanceMsnumberDefault auto-advance delay
onStepViewed(step, index) => voidAnalytics hook
onComplete() => voidCompletion callback

Steps with missing targets are skipped automatically with a console warning.

Interactive Demo