alexisroe

Last Updated

Component

About

A wrapper that shows a fresh/stale/expired status swatch and an auto-pluralized "time ago" label next to any value, based on configurable thresholds since it was last updated.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Last Updated to your project and fits it to your theme.

Code

How Last Updated is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { LastUpdated } from "@/components/ui/last-updated";

export default function LastUpdatedDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-white p-10">
      <LastUpdated date={new Date()}>$42.00</LastUpdated>
    </div>
  );
}

More by alexisroe

View all
  • Log

    Log

    7
  • Notification

    Notification

    2
  • Number Stepper

    Number Stepper

    2
  • Segmented Control

    Segmented Control

    2
  • Chip

    Chip

    2
  • Checkbox

    Checkbox

    1
  • E-Ink Code

    E-Ink Code

  • QR Code

    QR Code