Skip to content
Navigation

OrbitNavigation

Press the core and the links sweep out round it like moons settling into orbit. Esc or a second press brings them home.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ label, href, icon }[]—The links. icon = an svg.
radiusnumber88Distance from the centre to each link, in pixels.
startnumber-90Angle of the first link in degrees. -90 is straight up.
spreadnumber360How much of the circle the links cover, in degrees.
onSelect(item, e) => void—Click handler. Call e.preventDefault() to stay on the page.
colorstring"#a78bfa"Core and ring colour.
labelstring"Menu"Name read out by screen readers.
classNamestring"text-white"Extra classes on the wrapper.