Skip to content

Commit

Permalink
docs(README): added information about rendering the icon
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Frey <mail@lukasfrey.cz>
  • Loading branch information
lukas-frey committed Oct 12, 2022
1 parent 7b1b7d9 commit 1ba69ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ public static function table(Table $table): Table
}
```

The field's state returns the selected identifier of the icon.

Assuming we saved the icon on our `$category` model under `$icon`, you can render it in your blade view using:
```php
<x-icon name="{{ $category->icon }}" />
```
More information on rendering the icon on the [blade-icons github](https://github.com/blade-ui-kit/blade-icons#default-component).

### Options

#### Columns
Expand Down

0 comments on commit 1ba69ab

Please sign in to comment.