Animate UI

Hover Card

For sighted users to preview content available behind a link.

Made by imskyleen
Edit on GitHub

Installation

Usage

<HoverCard>
  <HoverCardTrigger>Hover me</HoverCardTrigger>
  <HoverCardPortal>
    <HoverCardContent>
      <p>Hover card content</p>
    </HoverCardContent>
  </HoverCardPortal>
</HoverCard>

API Reference

HoverCard

Radix UI API Reference - HoverCard.Root

HoverCardTrigger

Radix UI API Reference - HoverCard.Trigger

HoverCardPortal

Radix UI API Reference - HoverCard.Portal

The forceMount property is not supported in the HoverCardPortal component, as it is used for animation.

HoverCardContent

Radix UI API Reference - HoverCard.Content
PropTypeDefault
transition?
Transition
{ type: 'spring', stiffness: 300, damping: 25 }
...props?
HTMLMotionProps<"div">
-

The asChild and forceMount props are not supported in the HoverCardContent component as it is used for animation.

Credits

Built by Skyleen. The source code is available on GitHub.