Components

Segment Spotlight

A desktop-focused spotlight component for showcasing product features, services, or workflow steps with floating labels and an interactive icon toolbar.

interactivemarketinganimationmotionaccessibility

Segment Spotlight is desktop-focused

Open this preview on a wider screen to explore the floating labels and icon toolbar.

Installation

$npx shadcn@latest add https://ui.navdeepsingh.dev/r/segment-spotlight.json

API Reference

PropTypeDefaultDescription
segmentsSegmentSpotlightSegment[]-Floating label chips. Each item is { id, label, color?, className? }, where className positions the chip (e.g. "left-[18%] top-[20%]").
focusesSegmentSpotlightFocus[]-Icon toolbar buttons; hovering/focusing one highlights its segmentIds and blurs the rest. Each item is { id, label, icon, segmentIds, dividerAfter? }.
classNamestring-Classes merged onto the outer wrapper.
viewportClassNamestring-Classes merged onto the inner viewport that contains the chips and toolbar.
toolbarClassNamestring-Classes merged onto the floating icon toolbar.
showGridbooleanfalseRenders a subtle background grid inside the viewport.

Customization

  • Pass className to restyle the component. Classes are merged with cn, so your utilities win.
  • Styling uses Tailwind utility classes and theme tokens, so it adapts to light/dark mode automatically.
  • Tune behavior with the props in the API reference above, for example segments.