ai 2

Pill Buttons

Buttons

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

Dependencies

More by ai 2

View all
  • Ripple Buttons

    Ripple Buttons

    33
  • Styled Toggle Switches

    Styled Toggle Switches

    21
  • Styled Progress Bars

    Styled Progress Bars

    17
  • Styled Badges

    Styled Badges

    15
  • Particle Toggles

    Particle Toggles

    14
  • OTP Pin Input

    OTP Pin Input

    12
  • File Input

    File Input

    11
  • Combo Kbd

    Combo Kbd

    11

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1