2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

Hover

Updated: October 8, 2025
View on GitHub
The Hover component wraps any element and displays an overlay on top when the user hovers over it or focuses on it. It's perfect for creating interactive cards with hover effects, image overlays, or any content that needs to reveal additional information on interaction. Add a delay before the overlay appears or disappears with the delay and hideDelay props. The component supports keyboard navigation. For non-focusable triggers, add tabIndex={0} to make the wrapper keyboard-accessible. If your trigger is already focusable (like a Card with href), use tabIndex={-1} to prevent duplicate focus stops. By default, the hover effect is disabled on touch devices. You can set touch="enable" to allow hover interactions, or touch="display" to always show the overlay on touch devices. By default, the overlay is not interactive and click events are passed through to the trigger. You can set interactive to make the overlay interactive.
Prop
Type
Default
triggerrequired
The element that is hovered.
ReactNode
overlayrequired
What appears.
ReactNode
interactive
Let the pointer move into the overlay without it closing.
booleanfalse
delay
Milliseconds before it appears.
number0
hideDelay
Milliseconds before it hides.
number0
disabled
Never show it.
booleanfalse
touch
What a touch device does: "disable" never shows it, "display" always does, "enable" treats a tap as hover.
disableenabledisplay
disable
…and every FlexProps propinherited
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club