Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsNumbers & counters

Time ago

Relative time labels from a fixed now with Intl.RelativeTimeFormat, an absolute-time tooltip, live updates after mount and a compact variant.

Preview

Activity

Hover a time for the date
  • Noormerged “Fix export timezone”just now
  • Theocommented on the launch plan3 minutes ago
  • Miradeployed v4.0.2 to staging2 hours ago
  • Adeclosed 6 issuesyesterday
  • Lenajoined the Platform teamlast week
  • Omararchived the 2025 roadmap5 months ago

Upcoming

Design review in 19 hours

Launch in 4 weeks

Compact

now7m5h3d2mo

Short style: 2 hr. ago

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
dateDate | number | string—The moment being described.
nowDate | number | string—Now for the first render, so server and client agree.
livebooleanfalseKeep the label fresh after mount.
variant"long" | "short" | "compact""long"3 minutes ago, 3 min. ago, or 3m.
numeric"auto" | "always""auto"yesterday / tomorrow instead of 1 day ago.
localestring"en-US"Locale for Intl.RelativeTimeFormat.
tooltipbooleantrueAbsolute time in a tooltip on hover and focus.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗