tigran tumasov

Relative Time Card

Cards 14

About

Popover to show a given date in local time

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

Code

How Relative Time Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import React from "react";
import { RelativeTimeCard } from "@/components/ui/relative-time-card.tsx";
import { Button } from "@/components/ui/button";

export const Demo = () => (
    <div className="flex flex-col h-screen w-full items-center gap-2 justify-center">
        <div className="font-bold text-xl dark:text-white">Default</div>
        <RelativeTimeCard date={new Date().getTime()} side="top">
            <Button>Hover Me</Button>
        </RelativeTimeCard>
    </div>
);

More by tigran tumasov

View all
  • Product Hunt Badge

    Product Hunt Badge

    1.9K
  • Book

    Book

    165
  • Calendar

    Calendar

    154
  • Theme Switcher

    Theme Switcher

    136
  • Snippet

    Snippet

    124
  • Table

    Table

    123
  • Toggle

    Toggle

    91
  • Feedback

    Feedback

    90

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    273
  • Statistics Card 7

    Statistics Card 7

    301
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    184
  • Stats cards with links

    Stats cards with links

    82
  • Weather Card

    Weather Card

    57
  • Card Studio

    Card Studio

    9