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>
  )
}

More by Jatin Yadav

View all
  • Radial Orbital Timeline

    Radial Orbital Timeline

    7.4K
  • Expand Map

    Expand Map

    2.8K
  • Sign In Card

    Sign In Card

    2.6K
  • Project Showcase

    Project Showcase

    2.2K
  • Etheral Shadow

    Etheral Shadow

    2.1K
  • Vapour Text Effect

    Vapour Text Effect

    2K
  • Animated AI Chat

    Animated AI Chat

    1.6K
  • Vertical Image Stack

    Vertical Image Stack

    1.6K