Skip to main content

FooterBadge

Dual-layer fixed button (background + clipped front) that expands when the cursor is within hoverDistance pixels of the badge center.

Props (FooterBadgeProps)​

PropDefaultNotes
textrequiredLabel; also aria-label / title
icon'+'Collapsed glyph
theme'primary'primary | secondary | success | warning | danger
rightOffset / bottomOffset20 / 4Inline style position
hoverDistance80Expansion radius in px
disabledfalseSkips hover tracking and click
onClick—Fires when not disabled

Behavior​

mousemove on document tracks distance from badge center; footer-badge--expanded toggles CSS. Renders paired buttons so the badge can sit flush with the site footer chrome.


Sources: src/app/components/ui/FooterBadge.tsx, src/app/components/ui/FooterBadge.css