Jatin Yadav

Location Tag

Component 826

About

A compact, interactive location indicator with a live pulsing dot and smooth text-swap animation. Hover reveals your current local time.

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

Code

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

Usage.tsx

import { LocationTag } from "@/components/ui/location-tag";

export default function Page() {
  return (
    <main className="flex min-h-screen flex-col items-center justify-center gap-10 bg-background p-8">
      <div className="text-center space-y-2">
        <p className="text-xs uppercase tracking-widest text-muted-foreground">Hover to reveal</p>
      </div>

      <LocationTag city="San Francisco" country="USA" timezone="PST" />

      <p className="text-xs text-muted-foreground/60 max-w-[200px] text-center text-pretty">
        A minimal location indicator with live time
      </p>
    </main>
  )
}