Basic Badges

Simple badges for status indication and categorization

Default Badges

Default Primary Secondary Success Warning Danger Info Light Dark

Small Badges

Default Primary Secondary Success Warning Danger Info Light Dark

Pill Badges

Rounded badges for a softer, modern appearance

Regular Pills

Default Primary Secondary Success Warning Danger Info

Small Pills

Default Primary Secondary Success Warning Danger Info

Badges with Icons

Enhanced badges with icon indicators

โœ“ Completed ! Warning โœ• Error โ„น Info โ˜… Featured โฑ Pending

Labels

Text labels for categorization and tagging

Basic Labels

Frontend React TypeScript Bug Fix Enhancement Breaking Change Documentation

Outlined Labels

Frontend React TypeScript Bug Fix Enhancement Breaking Change Documentation

Badge Groups with Limits

Display many badges with automatic overflow handling - shows 5 badges and "... N more" indicator

Project Tags (15 total, showing 5)

React TypeScript Node.js Express PostgreSQL Redux Sass Docker AWS Redis GraphQL Jest Webpack ESLint GitHub Actions ยป 10 more

User Skills (34 total, showing 5)

JavaScript Python Java C++ Ruby Go Rust ยป 29 more

Small Badges (8 total, showing 5)

Approved Pending Rejected Review Draft Published Archived Deleted ยป 3 more
Note: The visible limit is controlled by $badge-group-visible-limit SCSS variable (default: 5). Future Svelte component will make this configurable per instance.

Wrapping Demo

29 badges in narrow container

React Vue Angular Svelte Solid TypeScript JavaScript Python Go Rust Java C++ C# Ruby PHP Swift Kotlin Dart Scala Elixir Haskell Clojure Elm F# OCaml Erlang Julia R MATLAB

Full Width Comparison

Same 29 badges with full width

React Vue Angular Svelte Solid TypeScript JavaScript Python Go Rust Java C++ C# Ruby PHP Swift Kotlin Dart Scala Elixir Haskell Clojure Elm F# OCaml Erlang Julia R MATLAB

Fixed-Width Badges with Ellipsis

Badges with constrained width show ellipsis for overflow text. Hover for tooltip with full text.

Various Fixed Widths

Short This is medium text This is longer text that will be truncated Very long badge text that definitely needs ellipsis Super extremely long badge text example

Small Fixed-Width Badges

OK Status Completed Task Pending Review Process Critical Error in Production

Practical Example: Tags with Consistent Width

JavaScript TypeScript React Node.js PostgreSQL Database Express.js Framework

Left-Side Ellipsis (Path/Hierarchy Display)

When the important part is at the end (breadcrumbs, file paths, etc.)

Settings > User Preferences > Notifications > Email /var/www/html/application/config/database.php Components > Forms > Inputs > TextArea.svelte Europe > Germany > Berlin > Mitte > Alexanderplatz
Note: Custom tooltips show full text on hover. Width classes range from pa-badge--w-1x to pa-badge--w-10x. Use pa-badge--ellipsis-left to truncate from the left side instead.

Usage Examples

Real-world examples of badges and labels in context

User Status

John Doe Online
Jane Smith Away
Mike Johnson Offline

Project Tags

Website Redesign
Frontend Design High Priority
API Integration
Backend REST API Critical

Composite Badges

Three-part badges with separate icon, label, and button sections

Standard Color Variations

โœ“ Primary
โš™ Secondary
โ˜… Success
๐Ÿ”ฅ Danger
โš  Warning
โ„น Info
โ—‡ Light
โ—† Dark

More Examples

๐Ÿ”ฅ Critical
โ—‡ Draft
โ—† Published

Advanced: Mixed Section Colors

For advanced customization, you can mix individual section colors using separate classes.

๐Ÿ“ Project Alpha
๐ŸŽฏ Target Met
โšก High Performance
๐Ÿ”ง Maintenance

Interactive Composite Badges

Examples with click handlers and dynamic behavior

๐Ÿ“‹ Task #1234
๐Ÿ‘ค John Doe
๐Ÿท๏ธ v2.1.0
Demo Actions: Click labels to view details, click buttons for actions. Check browser console for event logs.
Type to search or use /p for products, /o for orders, /u for users, /i for invoices

Settings

๐Ÿ‘ค

John Doe

Administrator