NavbarLinks

Animated navbar with sliding highlight indicator

Preview

FieldTypeNotes
`id`stringUnique identifier used to track active state.
`title`stringText label for the item.
`href?`stringIf provided, item becomes a Next.js `<Link>`.
`icon?`React.ReactNodeOptional icon rendered before the title.

Tips

  • Ideal for headers with 3–7 items to keep indicator motion feeling snappy.
  • When used on dynamic pages, pair active state with router path to auto-sync selection.
  • Icons should use consistent width to avoid indicator jitter during layout shifts.
  • You can wrap the entire navbar in a parent container with blurred or elevated backgrounds to match modern dashboard UI patterns.
  • If you add horizontal scroll or responsive collapsing, ensure the indicator recalculates using layout effects.