Preview Card

Hovering or focusing a link opens this card with a preview of where it goes, so people stay on the page.

UI SkillbookSiteplane docsSiteplane UI 1.8.1
Works withClaude CodeCodexCursorOpenCodeUniversal
Install

Run npx uiskillbook get siteplane-preview-card and follow the Siteplane Preview Card skill it prints for this task.

Paste this into your agent.

Preview Card lets readers peek at linked people, projects or documents before opening them. Treat the preview as extra information. The link must make sense without it.

Install

bashnpx shadcn@4.18.0 add @siteplane/preview-card

Import it from @/siteplane/components/preview-card. The project needs Siteplane UI's one-time setup first: installation.

When to pick it

  • vs Tooltip: Pick Tooltip instead for a one-line label on a control.
  • vs Popover: Pick Popover instead when the content holds actions or fields people must reach by keyboard.

Rules

  • Keep the link text clear on its own; never hide required information in the card.
  • Do not place required buttons or actions in the card.
  • Tune delay and closeDelay on PreviewCardTrigger if the default timing feels slow or jumpy.
  • Give PreviewCardPopup a width class when the content needs more than the default width.

Reference

  • Preview Card docs, with every prop, part and example (Markdown)
  • Siteplane UI 1.8.1, Overlays & disclosure. Read the installed source under src/siteplane before relying on an API.

Add to your agent

Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides

CLI

npx uiskillbook get siteplane-preview-card

MCP server

https://www.uiskillbook.com/mcp

Questions