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
Enable badge display mode.
Set the badge color. Works with Filament’s color system.
Add an icon to the badge.
Set the icon position within the badge.
Set the badge size.
Multiple Badges
Split a single value into multiple badges using a separator.
Display multiple badge values with line breaks.
Limit the number of badges displayed.
Formatting
All TextEntry formatting methods work with badges:Format badge text with a custom closure.