VisorVisor
ComponentsDeck

DotNav

Fixed-position navigation dots for tracking and jumping between slides.

Features

  • Fixed position navigation dots — always visible during the presentation
  • Hover tooltips with slide titles — shows the slide name on hover
  • Active state indicators — highlights the current slide
  • Dark variant for dark slides — use variant="dark" for light-colored dots

Installation

npx visor add deck-dot-nav

Usage

import { DotNav } from '@/components/deck/dot-nav/dot-nav';

export default function Example() {
  return (
    <DotNav
      slideCount={5}
      currentIndex={0}
      onDotClick={(index) => console.log('Navigate to', index)}
      titles={['Intro', 'Features', 'Demo', 'Pricing', 'Close']}
    />
  );
}

API Reference

PropTypeDefaultDescription
slideCountnumberTotal number of slides
currentIndexnumberIndex of the currently active slide
onDotClick(index: number) => voidCallback when a dot is clicked
variant"light" | "dark""light"Color variant for dot styling
titlesstring[]Tooltip labels for each dot