actions move to backend file
This commit is contained in:
@ -1,15 +1,10 @@
|
||||
@props(['color', 'text', 'groupHover'])
|
||||
<span
|
||||
@class([
|
||||
$color,
|
||||
$groupHover ? 'group-hover:bg-full-2' : 'hover:bg-full-2',
|
||||
'bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize'
|
||||
])
|
||||
>
|
||||
{!! $slot !!}
|
||||
</span>
|
||||
|
||||
@php
|
||||
if (empty($color)) {
|
||||
$color = 'to-black';
|
||||
}
|
||||
|
||||
if (empty($groupHover)) {
|
||||
$groupHover = false;
|
||||
}
|
||||
@endphp
|
||||
|
||||
<span class="bg-no-repeat bg-0-2 bg-0-full {{ $groupHover ? 'group-hover:bg-full-2' : 'hover:bg-full-2' }} bg-gradient-to-b from-transparent {{ $color }} transition-backgroundSize">
|
||||
{!! $slot !!}
|
||||
</span>
|
Reference in New Issue
Block a user