Skip to content
Navigation

ExpandNav

Icon tabs. The one you pick opens up to show its name in its own colour, and the others slide over to make room.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ label, href, icon, color? }[]—The tabs. icon = an svg; color = tint when open.
activestringfirst hrefhref of the open tab at start.
onSelect(item, e) => void—Click handler. Call e.preventDefault() to stay on the page.
labelstring"Main"Name read out by screen readers.
classNamestringdark pill barBar look.