Skip to content
Navigation

BubbleDock

A tab bar where the active icon rises in a bubble that melts out of the bar, and the bubble rolls to whichever tab you pick.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ label, href, icon }[]—The tabs. icon = an svg.
activestringfirst hrefhref of the active tab at start.
onSelect(item, e) => void—Click handler. Call e.preventDefault() to stay on the page.
sizenumber60Bar height in pixels. The bubble is the same size.
colorstring"#241e44"Bar and bubble colour.
activeColorstring"#a78bfa"Colour of the core inside the bubble.
labelstring"Tabs"Name read out by screen readers.
classNamestring"text-white/60"Icon colour. Width comes from the parent.