Aleks Bykhun

Dog Badge

Component

About

Metal dog collar tag that swings on hover, with an engraved name, bone and round shapes, and four metal finishes.

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

Code

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

Usage.tsx

import { DogBadge } from "@/components/ui/dog-badge"

const settings = {
  name: "Biscuit",
  detail: "Golden Retriever",
  tone: "gold",
  shape: "bone",
  collar: "#ef4444",
  swingOnMount: true,
}

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props }

  return (
    <div className="flex min-h-[420px] w-full items-center justify-center px-6 py-10">
      <div className="w-full max-w-[300px]">
        <DogBadge
          name={s.name}
          detail={s.detail}
          tone={s.tone}
          shape={s.shape}
          collar={s.collar}
          swingOnMount={s.swingOnMount}
        />
        <p className="mt-6 text-center text-xs text-muted-foreground">Hover or tap the tag</p>
      </div>
    </div>
  )
}