Customizing the color
Badges may have a color. It may be eitherprimary, secondary, success, warning or danger:
$state:
$record and / or $state:
Adding an icon
Badges may also have an icon:$record and / or $state:
iconPosition():
Formatting the text
All formatting options available for text columns are also available for badge columns.Allowing the text to be copied to the clipboard
You may make the text copyable, such that clicking on the cell copies the text to the clipboard, and optionally specify a custom confirmation message and duration in milliseconds. This feature only works when SSL is enabled for the app.
Filament uses tooltips to display the copy message in the admin panel. If you want to use the copyable feature outside of the admin panel, make sure you have @ryangjchandler/alpine-tooltip installed in your app.
Customizing the text that is copied to the clipboard
You can customize the text that gets copied to the clipboard using the `copyableState() method:$record: