Stacked Icon Pills
Stacked pair of compact announcement pills with green circular icon badges and embossed gray surfaces. Weekly release and custom notification patterns for dashboards and docs sidebars.
Dependencies
react
lucide-react
npm install lucide-reactimport { Plus, Triangle } from "lucide-react";
export function StackedIconPills() {
const items = [
{ icon: Plus, text: "New releases every week" },
{ icon: Triangle, text: "Custom icon pill" },
];
return (
<div className="flex flex-col gap-2">
{items.map(({ icon: Icon, text }) => (
<div key={text} className="inline-flex w-fit items-center gap-2 rounded-full border border-zinc-200 bg-gradient-to-b from-zinc-50 to-zinc-200/60 px-3 py-1.5 text-xs font-medium text-zinc-700 shadow-[0_1px_0_#fff_inset,0_4px_12px_rgba(0,0,0,0.07)]">
<span className="flex h-5 w-5 items-center justify-center rounded-full bg-gradient-to-b from-emerald-400 to-emerald-600 text-white shadow-[0_2px_4px_rgba(5,150,105,0.35)]">
<Icon className="h-3 w-3" />
</span>
{text}
</div>
))}
</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 { Plus, Triangle } from "lucide-react";
export function StackedIconPills() {
const items = [
{ icon: Plus, text: "New releases every week" },
{ icon: Triangle, text: "Custom icon pill" },
];
return (
<div className="flex flex-col gap-2">
{items.map(({ icon: Icon, text }) => (
<div key={text} className="inline-flex w-fit items-center gap-2 rounded-full border border-zinc-200 bg-gradient-to-b from-zinc-50 to-zinc-200/60 px-3 py-1.5 text-xs font-medium text-zinc-700 shadow-[0_1px_0_#fff_inset,0_4px_12px_rgba(0,0,0,0.07)]">
<span className="flex h-5 w-5 items-center justify-center rounded-full bg-gradient-to-b from-emerald-400 to-emerald-600 text-white shadow-[0_2px_4px_rgba(5,150,105,0.35)]">
<Icon className="h-3 w-3" />
</span>
{text}
</div>
))}
</div>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.