Skip to content

Commit b607f83

Browse files
committed
Add icon class
1 parent 9054746 commit b607f83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/views/actions/link.blade.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'label' => 'text-inherit',
55
'active' => 'text-primary-400 hover:text-primary-300',
66
'inactive' => 'text-secondary-400 hover:text-primary-400',
7+
'icon' => 'size-6 text-secondary-400',
78
])
89
->mergeAttributes($action->getComponentAttributes())
910
->classMerge([
@@ -18,7 +19,10 @@
1819
])
1920
}}>
2021
@if ($slot->isEmpty())
21-
<x-wireuse::actions-icon :$action />
22+
<x-wireuse::actions-icon
23+
:$action
24+
class:icon="{{ $attributes->classFor('icon') }}"
25+
/>
2226

2327
<span class="{{ $attributes->classFor('label') }}">
2428
{{ $label() }}

0 commit comments

Comments
 (0)