Hover Card

A card that appears on hover to show supplementary information about the hovered element.

ui@radix-ui/react-hover-card

Installation

$npx futureuikit add hover-card

Import

import { HoverCard } from "@/components/ui/hover-card"
Layout Variant
Color Theme
Theme
Shape
Spacing

Named Keys & Props

Pass these exact named keys as props on <HoverCard />. Click any color pill to copy the prop.

colorDefault is "default"(Black & White)
variantVisual style
"solid""outline""ghost""link"
themeSurface theme
"default""modern""clean""futuristic""brutal""halftone"
shapeCorner shape
"default""square""rounded""sharp"
spacingInner spacing
"default""2x""4x""6x""8x"

Usage Example

A basic implementation example to get you started.

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

export default function Example() {
  return (
    <HoverCard>
      <HoverCardTrigger>Hover me</HoverCardTrigger>
      <HoverCardContent>
        <p>Additional information displayed on hover.</p>
      </HoverCardContent>
    </HoverCard>
  );
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Displays a floating card with additional context on hover.
  • ◆Smooth open and close animations with configurable delays.
  • ◆Built on Radix UI for robust accessibility and positioning.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Install: Run 'npx futureuikit add hover-card'.
  • ◆Import: 'import { HoverCard, HoverCardContent, HoverCardTrigger } from "@/components/ui/hover-card";'
  • ◆Usage: Wrap a trigger element and place supplementary content inside HoverCardContent.