Fix ColorColumn namespace in documentation (#17962)

Updated namespace for ColorColumn usage in documentation.

Signed-off-by: Stefano Bifolco <stefanobifolco@gmail.com>
This commit is contained in:
Stefano Bifolco
2025-09-26 14:53:58 +01:00
committed by GitHub
parent 04ada2e98f
commit bcbafb44c4
+3 -3
View File
@@ -10,7 +10,7 @@ import UtilityInjection from "@components/UtilityInjection.astro"
The color column allows you to show the color preview from a CSS color definition, typically entered using the [color picker field](../../forms/color-picker), in one of the supported formats (HEX, HSL, RGB, RGBA).
```php
use Filament\Tables\Components\ColorColumn;
use Filament\Tables\Columns\ColorColumn;
ColorColumn::make('color')
```
@@ -22,7 +22,7 @@ ColorColumn::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.
```php
use Filament\Tables\Components\ColorColumn;
use Filament\Tables\Columns\ColorColumn;
ColorColumn::make('color')
->copyable()
@@ -35,7 +35,7 @@ ColorColumn::make('color')
Optionally, you may pass a boolean value to control if the text should be copyable or not:
```php
use Filament\Tables\Components\ColorColumn;
use Filament\Tables\Columns\ColorColumn;
ColorColumn::make('color')
->copyable(FeatureFlag::active())