Get License
Free
Pro

Hover Card

A rich preview that opens when the pointer rests on a trigger — no click and no backdrop, so you can move into the panel. Closes on leave (after a short delay), outside pointer down, or Escape. Place the trigger in the [hover-card-trigger] slot and panel content as default children.

freenew

Profile preview

Hover the name to see a card. The panel is a CDK overlay, so it is not clipped by overflow-hidden parents.

Designed by in 1843.

HTML

Placement

Same placements as popover. The panel flips when there is not enough room.

Installation

Run the following command to add this component to your project:

bash

npx base-ui-cli add hover-card

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.

bash

npx -y base-ui-mcp

Base UI provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// Install: npx base-ui-cli add hover-card
// Paths are relative to aliases.components (default: src/app/components)
import { HoverCardComponent } from './hover-card/hover-card.component';

@Component({
  selector: 'app-your-component',
  imports: [
    HoverCardComponent
  ],
  template: `...`
})
export class YourComponent {}

API for hover-card — generated from JSDoc in the library source.

API reference for hover-card
APIMemberTypeDefaultDescription
base-hover-cardclassstring''Extra host classes merged via `cn()`.
base-hover-cardminWidthunknown'240px'Minimum width of the overlay panel.
base-hover-cardplacementPopoverPlacement'bottom-start'Preferred placement relative to the trigger. Flips when there is not enough room.
base-hover-cardopenDelaynumber200Milliseconds to wait after pointer enter / focus before opening.
base-hover-cardcloseDelaynumber150Milliseconds to wait after pointer leave before closing (lets the pointer reach the panel).
base-hover-card(openChange)booleanEmits whenever the panel opens or closes.