Skip to main content

Introduction

Badge entries display text with a colored background, making them perfect for statuses, tags, and categories. Badges are created using the badge() method on TextEntry.

Available Methods

Badge entries use the TextEntry component with the badge() modifier. All TextEntry methods are available.

Badge Configuration

bool|Closure
Enable badge display mode.
string|array|Closure
Set the badge color. Works with Filament’s color system.
string|Htmlable|Closure
Add an icon to the badge.
IconPosition
Set the icon position within the badge.
TextSize
Set the badge size.

Multiple Badges

string|Closure
Split a single value into multiple badges using a separator.
bool|Closure
Display multiple badge values with line breaks.
int|Closure
Limit the number of badges displayed.

Formatting

All TextEntry formatting methods work with badges:
Closure
Format badge text with a custom closure.

Examples

Status Badge

Tags with Color Coding

Category Badges

Priority Badge

User Roles

Skill Tags

Verification Badge