Peek Card

Peek Card: An origin-anchored contextual preview popover that emerges directly from target triggers on hover or tap with smart collision edge detection and rich metadata summaries. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Peek Card

npx motion-ui-skill add peek-card

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Source files

Peek Card

An origin-anchored contextual preview popover that emerges directly from target triggers on hover or tap with smart collision edge detection and rich metadata summaries.

Install

npx motion-ui-skill add peek-card

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { PeekCard as PeekCard } from "@/components/motion/peek-card";

export function Example() {
  return (
    <div className="p-6">
      <PeekCard />
    </div>
  );
}

Browse this category