ui

Preview Card

A popup that appears when a link is hovered, showing a preview for sighted users. Built with Base UI and Tailwind CSS. Copy-paste ready.

API Reference

Installation

Usage

Notes

  • Hover only — the popup appears on hover and is hidden from screen readers by design. Use it for visual enhancement, not critical information.
  • Not a tooltip — tooltips are for short label text. Use PreviewCard when you want to show a richer preview (image, description, metadata) before the user navigates.
  • Delay — Base UI adds a short hover delay by default to avoid flickering when the user mouses across the trigger.

Examples

User Mention Card

Hover over an @mention to see a profile card with avatar placeholder, display name, handle, bio, and follower/following counts.

Article Preview

Hover over a blog post link to reveal a thumbnail placeholder, title, excerpt, and read-time indicator before navigating.

Product Card

Hover over a product name to see an image placeholder, star rating, review count, and price — common in recommendation and search result lists.

Issue Preview

Hover over a GitHub-style issue number to reveal the title, open/closed status icon, author, labels, and repository metadata.

Package Preview

Hover over an npm package name to see the package icon, version, description, weekly download count, and language tag.