TuMarca

Hover Card

For sighted users to preview content available behind a link.

stable
Tipo: ui
Versión: 1.0.0
overlay interactive interactive hover tooltip vanilla-js
🚀 saastro/ui (Astro)
@nextjs
VC

@nextjs

The React Framework - created and maintained by @vercel.

Joined December 2021
⚛️ shadcn/ui (React)

Installation

npx saastro add hover-card

Usage

---
import { HoverCard, HoverCardTrigger, HoverCardContent } from "@/components/ui-saastro/hover-card";
---

<HoverCard>
  <HoverCardTrigger>
    <span>Hover over me</span>
  </HoverCardTrigger>
  <HoverCardContent>
    Content shown on hover
  </HoverCardContent>
</HoverCard>

Props

HoverCard

PropTypeDefaultDescription
openDelaynumber200Delay before showing (ms)
closeDelaynumber300Delay before hiding (ms)

HoverCardContent

PropTypeDefaultDescription
side"top" | "bottom" | "left" | "right""bottom"Preferred side
align"start" | "center" | "end""center"Alignment

Accessibility

  • Shows on hover and focus for keyboard users
  • Uses configurable delays to prevent flickering
  • Content remains visible when hovering over it

Performance

Performance Benchmark

Bundle Size

~2KB vs ~185KB

99% menos

Hydration

0ms vs --

Sin hydration

Hover Response

-- vs --

Interactúa para medir

Saastro (Vanilla JS)
@nextjs
VC

@nextjs

The React Framework - created and maintained by @vercel.

Joined December 2021
shadcn (React)

Haz click en "Ejecutar Test" o interactúa con los componentes (hover) para medir el rendimiento.