Start here
  • InstallationAdd Nelumbo to a shadcn project
  • ThemingBrand accent, neutrals, dynamic color
  • Biology componentsSequences, maps, plates and trees
  • katalyx.bio

    Hover Card

    A preview that appears when someone hovers or focuses a link. It springs out of the trigger and leaves when they move away. It only previews: never put the only way to do something in it.

    Install

    npx shadcn@latest add @nelumbo/hover-card

    Profile

    Hover the name or tab to it. A card with an avatar, a status and a short bio.

    Reviewed by @maya and shipped on Friday.

    A title, a line of context and where it goes. Placement follows side and align and flips near edges.

    Placement

    Radix props pass through.

    Usage

    import { HoverCard, HoverCardTrigger, HoverCardContent } from "@/components/ui/hover-card"​<HoverCard>  <HoverCardTrigger asChild><a href="/maya">@maya</a></HoverCardTrigger>  <HoverCardContent>    Maya Kowalski, Product design  </HoverCardContent></HoverCard>

    Props

    Other props go to Radix HoverCard (open, onOpenChange, side, alignOffset…). Opens on hover and keyboard focus; Escape closes.

    PropTypeDefaultNotes
    openDelaynumber250ms before opening (HoverCard)
    closeDelaynumber120ms before closing (HoverCard)
    align"start" | "center" | "end""center"
    sideOffsetnumber8Gap to the trigger
    collisionPaddingnumber8Keeps it this far from the viewport edge