Skip to content

Commit 50bb186

Browse files
Merge pull request #40 from howdu/patch-2
Use component attributes
2 parents f29677d + 2ed5473 commit 50bb186

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/views/components/simple-alert.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
@endphp
2222

2323
<div x-data="{}"
24-
@class([
25-
'filament-simple-alert rounded-md bg-custom-50 p-4 dark:bg-custom-400/10',
26-
'ring-1 ring-custom-100 dark:ring-custom-500/70' => $border,
27-
])
24+
{{ $attributes->class([
25+
'filament-simple-alert rounded-md bg-custom-50 p-4 dark:bg-custom-400/10',
26+
'ring-1 ring-custom-100 dark:ring-custom-500/70' => $border,
27+
]) }}
2828
style="{{ $colors }}">
2929
<div class="flex gap-3">
3030
@if($icon)

0 commit comments

Comments
 (0)