About
A rounded pill-shaped button with five hover-fill animation styles (fill, center-fill, swap, outline-fill, dot) for calls to action, built with framer-motion and reduced-motion aware.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pill Buttons to your project and fits it to your theme.
Code
How Pill Buttons is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import {
FillButton,
CenterFillButton,
SwapButton,
OutlineFillButton,
DotButton,
} from "@/components/ui/buttons-pill";
export default function ButtonsPillDemo() {
return (
<div className="flex min-h-screen w-full flex-wrap items-center justify-center gap-4 bg-background p-10">
<FillButton size="md">Fill</FillButton>
<CenterFillButton size="md">Center fill</CenterFillButton>
<SwapButton size="md">Swap</SwapButton>
<OutlineFillButton size="md">Outline fill</OutlineFillButton>
<DotButton size="md">Dot</DotButton>
</div>
);
}
















