43 Pro components and page blocks

Get Pro

Hover Card

Preview

Customize

Below
Centre
Open delay450ms
Close delay200ms

Usage

import { HoverCard } from "@/components/uibrik/hover-card/hover-card";

<HoverCard content={content}>…</HoverCard>

Installation

npx shadcn@latest add https://uibrik.com/r/hover-card.json
Adds the files to components/uibrik/hover-card and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/hover-card.

Props

HoverCard
side
Type "bottom" | "top" | "right" | "left"
"bottom"
Preferred side. Flips when there isn't room.
align
Type "start" | "center" | "end"
"center"
Which part of the link the card lines up with.
openDelay
Type number
450
Hover time before it opens.
closeDelay
Type number
200
Time after leaving before it closes.
childrenrequired
Type ReactNode
–
The link or element that shows the card.
contentrequired
Type ReactNode
–
The card's contents.
className
Type string
–
Classes for the card.