Fluid Hover Highlight
Last updated: October 14, 2026
A highlight that springs between list items as the pointer moves, instead of blinking on hover.
Installation
npx smoothui-cli add fluid-hover-highlightFeatures
- Springs between
useFluidHoverrects so one highlight glides across a list - Pass the hook result, or a measured
rectandsessionfor custom layouts - Container must be
position: relative; radius and stacking go onclassName - Opacity fades on enter and leave; position uses the shared spring presets
- Instant when
prefers-reduced-motionis set, or whentransition={false}
Accessibility
ARIA Attributes
| Attribute | Element | Purpose |
|---|---|---|
data-slot="fluid-hover-highlight" | Highlight | Marks the decorative layer for styling. It is pointer-events-none and never receives focus |
Screen Reader
- The highlight is decorative. List items keep their own labels and roles.
- Interactive children stay in the accessibility tree; the highlight does not wrap them.
Reduced Motion
This component respects prefers-reduced-motion via useReducedMotion from Motion. When reduced motion is preferred, the highlight snaps to the active rect with no travel.
Props
Created by
Powered by
© 2026 SmoothUI. Built by Eduardo Calvo.