Join our Discord Community
Media

Pill

Flexible badge pill component for React and Next.js applications. Built with TypeScript support, Tailwind CSS styling, and shadcn/ui design featuring status indicators, avatar integration, and customizable variants.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/pill.json
npx shadcn@latest add https://www.shadcn.io/registry/pill.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/pill.json
bunx shadcn@latest add https://www.shadcn.io/registry/pill.json

Features

  • Badge variants - Rounded pill styling with consistent padding using Tailwind CSS utilities
  • Avatar integration - Built-in avatar support with fallback options using shadcn/ui Avatar component
  • Status indicators - Success, error, warning, info variants with pulse animations using React state
  • Delta displays - Change indicators for increase/decrease values using TypeScript props
  • Icon support - Lucide icon integration with consistent styling for Next.js applications
  • Avatar groups - Multiple avatar overlapping with configurable spacing using JavaScript positioning
  • Button integration - Ghost button support for dismissible pills using event handlers
  • Open source - Free pill component with themeable variants and flexible content

Examples

Avatar

A simple pill with an avatar and text.

Loading component...

Status

A pill with a status indicator and text.

Loading component...

Button

A pill with a button for dismissal.

Loading component...

Indicator

Pills with different indicator states.

Loading component...

Delta

Pills showing different delta states.

Loading component...

Icon

A pill with an icon and text.

Loading component...

Avatar Group

A pill with multiple avatars grouped together.

Loading component...

Use Cases

  • Status badges - User status, system health, and notification indicators
  • Team displays - Member lists with avatars and role indicators
  • Data metrics - KPI displays with delta changes and trend indicators
  • Tag systems - Content categorization with dismissible pill interface

Implementation

Built with Badge component and flexible content slots. Supports avatar fallbacks and status variants. Uses Lucide icons for consistency. Button integration with event handlers for dismissal.