Info Badge Pill
Info badge announcement pill: embossed green gradient Info label on a gray pill body with welcome message. Perfect for onboarding flows, platform welcomes, and docs site notices. Layered inset shadows for premium depth.
Dependencies
react
lucide-react
npm install lucide-reactimport { ArrowUpRight } from "lucide-react";
export function InfoBadgePill() {
return (
<div className="inline-flex items-center gap-3 rounded-full bg-gradient-to-b from-zinc-50 to-zinc-200/80 p-1.5 pr-4 shadow-[0_2px_0_#fff_inset,0_8px_24px_rgba(0,0,0,0.1)] ring-1 ring-zinc-200/60">
<span className="rounded-full bg-gradient-to-b from-emerald-400 to-emerald-600 px-3 py-1 text-xs font-bold uppercase tracking-wide text-white shadow-[0_2px_4px_rgba(5,150,105,0.4),0_1px_0_rgba(255,255,255,0.3)_inset]">
Info
</span>
<span className="text-sm font-medium text-zinc-700">Welcome to the platform</span>
<ArrowUpRight className="h-3.5 w-3.5 text-emerald-600" />
</div>
);
}
Please implement this code in the current project and add it to (Your Desired Section, e.g. homepage hero, pricing page, dashboard). Change the primary accent color to (YOUR HEX CODE COLOR, e.g. #6366F1).
Requirements:
- Use React + Tailwind CSS (match the project's existing setup)
- Install dependencies if needed: npm install lucide-react
- Keep the layout responsive on mobile and desktop
- Replace placeholder copy with content that fits the project
The UI code:
import { ArrowUpRight } from "lucide-react";
export function InfoBadgePill() {
return (
<div className="inline-flex items-center gap-3 rounded-full bg-gradient-to-b from-zinc-50 to-zinc-200/80 p-1.5 pr-4 shadow-[0_2px_0_#fff_inset,0_8px_24px_rgba(0,0,0,0.1)] ring-1 ring-zinc-200/60">
<span className="rounded-full bg-gradient-to-b from-emerald-400 to-emerald-600 px-3 py-1 text-xs font-bold uppercase tracking-wide text-white shadow-[0_2px_4px_rgba(5,150,105,0.4),0_1px_0_rgba(255,255,255,0.3)_inset]">
Info
</span>
<span className="text-sm font-medium text-zinc-700">Welcome to the platform</span>
<ArrowUpRight className="h-3.5 w-3.5 text-emerald-600" />
</div>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.