Rebar UI

1.0

opinion

FloatingBubble

A round button you can drag anywhere, optionally snapping to the nearest edge.

Quick-add bubbleDrag it around; a tap still clicks

Harbour rebrand

Identity, site and launch kit for the harbour trust.

Horizontal only
Vertical only, snaps to edge

In context

Tasks on a phoneA quick-add bubble above the tab bar
My tasks

Draft launch checklist

Priya Nair · Harbour rebrand

Book crew interviews

Leo Santos · Crew interviews

Icon audit

Maya Chen · Harbour rebrand

Offline sync for tasks

Jonas Weber · Tideline mobile

Harbour homepage

Maya Chen · Harbour rebrand

Props

PropTypeRequiredDefault
axisFloatingBubbleAxis | undefinedNoy
magnetic"x" | "y" | "xy" | undefinedNo—
defaultOffsetFloatingBubbleOffset | undefinedNo{ x: 0, y: 0 }
offsetFloatingBubbleOffset | undefinedNo—
onOffsetChange((offset: FloatingBubbleOffset) => void) | undefinedNo—
classNamestring | undefinedNo—

data-rebar-* attributes

data-rebar-component="floating-bubble".

Migrating to Ant Design

Ant Design (web) has no direct equivalent — this ports antd-*mobile*'s FloatingBubble. A migration typically hand-rolls the same pointer-drag-plus-magnetic-snap pattern, or drops the drag affordance for a fixed-position button if the design doesn't need it.