Docs
Components
Hotspot

The Hotspot Component

<Hotspot> is a lightweight beacon anchored to a target selector. It expands into a small tooltip on interaction.

Usage

export-hotspot.tsx
import { Hotspot, TooltipGroup } from 'featuredrop/react'
 
<TooltipGroup maxVisible={2}>
  <Hotspot id="editor-tip" target="#editor" type="new" frequency="once">
    Try the markdown parser for release notes.
  </Hotspot>
 
  <Hotspot id="analytics-tip" target="#analytics" type="info" frequency="every-session">
    Track changelog engagement after launch.
  </Hotspot>
</TooltipGroup>

Key props

PropTypeNotes
idstringRequired hotspot id
targetstringRequired CSS selector
type'info' | 'new' | 'help'Beacon style
frequency'once' | 'every-session' | 'always'Re-display policy
childrenReactNodeTooltip content

Wrap multiple hotspots in <TooltipGroup> to cap simultaneous tooltips.

Interactive Demo