Skip to content

Commit 5351353

Browse files
authored
Merge pull request #21 from buddhaCode/fixIconAliases
fix icon aliases
2 parents ac9f64a + bab3165 commit 5351353

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ GazeBanner::make()
138138
#### Description
139139
`hideOnCreate` is a helper function that can be used to hide the banner on create forms.
140140

141+
## Customization
142+
143+
### Change icons
144+
145+
To [customize the icons](https://filamentphp.com/docs/3.x/support/icons#replacing-the-default-icons) in the banner, you may use the following aliases:
146+
147+
- `filament-gaze::banner.locked` for the lock icon
148+
- `filament-gaze::banner.view` for the eye icon
141149

142150
## Author
143151

resources/views/forms/components/gaze-banner.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ class="gaze-banner @if($show) gaze-banner--has-content @endif"
99
<div class="flex flex-col justify-center">
1010
@if($isLockable && !$hasControl)
1111
<x-filament::icon
12-
alias="panels::filament-gaze.banner.icon"
12+
alias="filament-gaze::banner.locked"
1313
icon="heroicon-m-lock-closed"
1414
class="h-5 w-5 my-auto"
1515
/>
1616
@else
1717
<x-filament::icon
18-
alias="panels::filament-gaze.banner.icon"
18+
alias="filament-gaze::banner.view"
1919
icon="heroicon-m-eye"
2020
class="h-5 w-5 my-auto"
2121
/>

0 commit comments

Comments
 (0)