FloatingMenu
A compact, inverted pill of destinations that floats over the page once the reader scrolls away from the header, with an optional Back to top button.
LayoutContainer renders it for the site; pass targetRef and position sticky to use it inside a scroll container.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Usage
Examples
Playground
Reveal Past Threshold
With Call To Action
Keyboard Reveal
API
Accessibility
A labelled navigation landmark that stays in the tab order while hidden; focusing it reveals it. The current link has aria-current="page". Reduced motion removes the slide and makes Back to top jump. On phones the links scroll inside the pill and Back to top collapses to its icon, so the page never overflows.