Introduction
Badge entries display text with a colored background, making them perfect for statuses, tags, and categories. Badges are created using thebadge() method on TextEntry.
Available Methods
Badge entries use the TextEntry component with thebadge() 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.