Skip to content

Commit

Permalink
add feature to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanalareqi committed Nov 8, 2023
1 parent f77e40f commit 2e4439b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/tables/docs/03-columns/02-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,20 @@ TextColumn::make('email')

<AutoScreenshot name="tables/columns/text/icon-after" alt="Text column with icon after" version="3.x" />

You may set the color of an icon using `iconColor()`:

```php
use Filament\Support\Enums\IconPosition;
use Filament\Tables\Columns\TextColumn;

TextColumn::make('email')
->icon('heroicon-m-envelope')
->iconPosition(IconPosition::After) // `IconPosition::Before` or `IconPosition::After`
->iconColor('success')
```

<AutoScreenshot name="tables/columns/text/icon-color" alt="Text column with icon color" version="3.x" />

## Customizing the text size

You may make the text larger using `size(TextColumnSize::Large)`:
Expand Down

0 comments on commit 2e4439b

Please sign in to comment.