You are currently viewing the documentation for Filament 3.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.
The color entry allows you to show the color preview from a CSS color definition, typically entered using the color picker field, in one of the supported formats (HEX, HSL, RGB, RGBA).
Copy
use Filament\Infolists\Components\ColorEntry;ColorEntry::make('color')
You may make the color copyable, such that clicking on the preview copies the CSS value 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.
Copy
use Filament\Infolists\Components\ColorEntry;ColorEntry::make('color') ->copyable() ->copyMessage('Copied!') ->copyMessageDuration(1500)