group-hover development for relating component
This commit is contained in:
@ -1,11 +1,15 @@
|
||||
@props(['color', 'text'])
|
||||
@props(['color', 'text', 'groupHover'])
|
||||
|
||||
@php
|
||||
if (empty($color)) {
|
||||
$color = 'to-purple';
|
||||
}
|
||||
|
||||
if (empty($groupHover)) {
|
||||
$groupHover = false;
|
||||
}
|
||||
@endphp
|
||||
|
||||
<span class="bg-no-repeat bg-0-2 bg-0-full hover:bg-full-2 bg-gradient-to-b from-transparent {{ $color }} transition-backgroundSize">
|
||||
<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">
|
||||
{{ $text }}
|
||||
</span>
|
Reference in New Issue
Block a user