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

CursorCard

Updated: May 8, 2025
View on GitHub
A component that displays floating content that follows the user's cursor when hovering over a trigger element. Useful for creating interactive tooltips, previews, or contextual information that enhances the user experience without requiring clicks. The CursorCard component supports different placement options to control how the overlay content is positioned relative to the cursor.
Prop
Type
Default
trigger
The region that shows the overlay.
ReactNode
overlay
What follows the pointer.
ReactNode
placement
Where the overlay sits relative to the cursor.
toprightbottomlefttop-starttop-endright-startright-endbottom-startbottom-endleft-startleft-end
bottom-left
className
string
style
React.CSSProperties
…and every FlexProps propinherited
The CursorCard component is designed for desktop use and automatically disables its functionality on touch devices. For touch devices, consider providing alternative ways to access the same information, such as expandable sections or dialogs.
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club