Shadcn Hover Card Live Timestamp
Timestamp hover card with active relative time. Built by composing Badge, Hover Card, Separator. Uses date-fns alongside the shadcn primitives. A free, open source shadcn hover card example you can install with npx shadcn@latest add @reui/c-hover-card-7 and edit as your own code.
Timestamp hover card with active relative time
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: A dashed underline relative time inside a sentence, opening the exact deploy time over a live clock that ticks each second
When to use
- Profile previews on a person's name or avatar, with photo, handle, role and join date
- Feature, image and release note previews shown on hover or focus of a button or link
- Exact dates and times behind a short inline label, such as a relative deploy time in a sentence
When not to use
- The same timestamp detail opened with a tap on a touch screen: use the Popover component
- A one line label that names an icon button or a control: use the Tooltip component
- Content that stays visible in the page layout without a pointer over it: use the Card component
Agent notes
referenceTimeis always 2 hours beforenow; set it from your real deploy timestamp- The UTC row runs
referenceTimethrough date-fnsformat, which prints local time; convert it to UTC or relabel that row - Timing is
delayandcloseDelayon the baseHoverCardTriggerbutopenDelayandcloseDelayon the radixHoverCardroot - Without
renderon the base twin orasChildon radix,HoverCardTriggerrenders a link with no href, which Tab skips - The radix
HoverCardContentsets tabindex -1 on every link and button inside it, so keep keyboard actions outside the card
Third-party API docs
- date-fns v4: docs
https://reui.io/components/hover-card/c-hover-card-7.mdget_example("c-hover-card-7")npx shadcn@latest add @reui/c-hover-card-7Shadcn Components in Hover Card Live Timestamp
Dependencies
- date-fns
About Shadcn Hover Card Live Timestamp
Timestamp hover card with active relative time. Built by composing Badge, Hover Card, Separator. Uses date-fns alongside the shadcn primitives. A free, open source shadcn hover card example you can install with npx shadcn@latest add @reui/c-hover-card-7 and edit as your own code.
What You Can Build With Shadcn Hover Card Live Timestamp
- Composes Badge, Hover Card, Separator, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-hover-card-7
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Hover Card Examples
- Basic Basic hover card.
- Positions Hover card with positions.
- Profile Hover card with profile information.
- Icon Hover card with icon
- Image & Text Hover card with an image and text content.
- In Dialog Hover card inside a dialog.
- Release Notes Hover card with paginated release notes
Related Shadcn Component Categories
Open-source shadcn icon tile components for list row media, feature cards, empty states, and dashboard tiles.
Open-source shadcn input components for form entry, search fields, and auth screens.
Open-source shadcn input group components for prefixed inputs, suffixed actions, and combined form controls.
Open-source shadcn OTP input components for verification codes, 2FA flows, and secure confirmation screens.
Open-source shadcn item row components for list rows, settings items, and action rows.
Frequently Asked Questions
When should I use Shadcn Hover Card Live Timestamp?
Use it for a dashed underline relative time inside a sentence, opening the exact deploy time over a live clock that ticks each second.
Shadcn Hover Card as a whole fits:
- Profile previews on a person's name or avatar, with photo, handle, role and join date
- Feature, image and release note previews shown on hover or focus of a button or link
- Exact dates and times behind a short inline label, such as a relative deploy time in a sentence
For the same timestamp detail opened with a tap on a touch screen, use the Popover component. For a one line label that names an icon button or a control, use the Tooltip component. For content that stays visible in the page layout without a pointer over it, use the Card component.
How do I install Shadcn Hover Card Live Timestamp?
Is Shadcn Hover Card Live Timestamp free to use?
Which components does Shadcn Hover Card Live Timestamp use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.