Skip to content
Navigation

CompassNav

A brass ship's compass with your pages round the card. The needle follows the pointer like a magnet, swings back and forth before it settles on the page you press, and the bearing counts along with it.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ label, href }[]—Pages clockwise from the top, 2 to 8. Short names fit best.
startnumber0Index of the page the needle points at first.
onSelect(item, event) => void—Called on press. Call event.preventDefault() to stay on the page.
labelstring"Site compass"Name read out by screen readers.
classNamestring""Size. The dial is square, so give it a width that fits the height.