structure created for view components

This commit is contained in:
Burak Civan
2022-06-23 13:59:49 +03:00
parent f3f2a64a99
commit 2262600b37
9 changed files with 29 additions and 38 deletions

View File

@ -0,0 +1,11 @@
@props(['color', 'text'])
@php
if (empty($color)) {
$color = 'to-purple';
}
@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">
{{ $text }}
</span>