halaska-studio

Hover Card

Cards 1

About

A small popover panel that appears when hovering (or focusing) a trigger element, used to preview extra details like a customer summary or a person's profile without navigating away.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hover Card to your project and fits it to your theme.

Code

How Hover Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import HoverCard from "@/components/ui/hover-card";
import {
  Badge,
  Stack,
  Text,
} from "@/components/ui/hover-card-utils/kit-extras";

export default function HoverCardStatusDetailDemo() {
  return (
    <div
      style={{
        display: "flex",
        alignItems: "center",
        justifyContent: "center",
        minHeight: 220,
        padding: 40,
      }}
    >
      <HoverCard trigger={<Badge variant="warning">Needs approval</Badge>}>
        <Stack gap={4} style={{ width: 240 }}>
          <Text weight="medium">Refund over the $100 cap</Text>
          <Text size="sm" secondary>
            Alpha drafted a $240 refund for Lumen Labs. Priya Nair can approve
            it.
          </Text>
        </Stack>
      </HoverCard>
    </div>
  );
}

More by halaska-studio

View all
  • Dot Grid

    Dot Grid

    24
  • Orb

    Orb

    15
  • Segmented Control

    Segmented Control

    8
  • Choicebox

    Choicebox

    6
  • Combobox

    Combobox

    5
  • Dialog

    Dialog

    4
  • Input OTP

    Input OTP

    4
  • Table

    Table

    2

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    264
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    292
  • Item

    Item

    10