v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS
HoverCard
Rich supporting content with hover and click access.
Interactive preview
Usage
import { HoverCard } from "@devvy-ui/react";
<HoverCard label="About Dev Station"><p>Independent tools for builders.</p></HoverCard>API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| delay | number | 500 | Hover opening delay. |
| Popover props | PopoverProps | — | Content, label, visibility and native panel props. |
Accessibility & behavior
Platform Behavior & Guidelines
Delayed hover does not steal focus. The visible button can also toggle the card for keyboard/touch access. Rich interactive content remains in a nonmodal popover.
Source ownership
Run npx @devvy-ui/cli init once in your React project, then add the source:
npx @devvy-ui/cli add hover-cardMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
HoverCard.tsxREACT / TSX
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.