Hover Card

HoverCard Primitive

Headless, unstyled hover card primitive with positioning and delay controls.

AsChild Pattern

Use AsChild to compose triggers with your own styled elements.

Without AsChild

HoverCardTriggerPrimitive renders its own div element.

Hover me

With AsChild

Button receives hover/focus behavior via TriggerContext.

Basic Usage

Hover over the trigger to show the hover card. Content appears after a delay.

Hover me

Custom Delays

Control the open and close delays in milliseconds.

Quick (200ms)
Slow (1000ms)

Positioning

Control where the hover card appears relative to the trigger.

Top
Right

Accessibility Features

Interaction and ARIA support.

When to Use Primitives

Choose between primitives and styled components based on your needs.

Use HoverCard Primitive

  • Building a custom design system
  • Need complete control over styling
  • Want to apply your own CSS framework
  • Creating unique visual designs

Use Styled Component

  • Want shadcn/ui design out of the box
  • Need quick implementation
  • Like the default styling
  • Prefer convention over configuration

Reconnecting...

Attempting to rejoin the server

Connection Lost

Retrying in seconds

Connection Failed

Failed to rejoin the server.
Please retry or reload the page.

Session Paused

The session has been paused by the server

Resume Failed

Failed to resume the session.
Please reload the page.