HoverCard
Display popover section when target element is hovered
Source
LLM docs
Docs
PackageIcon
Usage
Delays
Set open and close delays in ms with the openDelay and closeDelay props:
HoverCard delay group
Use the HoverCard.Group component to sync open and close delays of multiple HoverCard components:
With interactive elements
HoverCard is displayed only when the mouse is over the target element or dropdown.
You can use anchors and buttons within dropdowns, using inputs is not recommended:
HoverCard.Target children
HoverCard.Target requires an element or a component as a single child – strings, fragments, numbers, and multiple elements/components are not supported and will throw an error. Custom components must provide a prop to get the root element ref; all Mantine components support ref out of the box.
Required ref prop
Custom components that are rendered inside HoverCard.Target are required to support the ref prop:
Pass ref to the root element:
Accessibility
HoverCard is ignored by screen readers and cannot be activated with the keyboard. Use it to display only additional information
that is not required to understand the context.