This commit is contained in:
Saeed Vaziry
2023-07-02 12:47:50 +02:00
commit 5c72f12490
825 changed files with 41659 additions and 0 deletions

View File

@ -0,0 +1,12 @@
@props(['active'])
@php
$class = 'flex w-full items-center justify-center rounded-md border-2 bg-primary-50 px-3 pt-3 pb-2 dark:bg-primary-500 dark:bg-opacity-10 cursor-pointer';
$classes = ($active ?? false)
? $class . ' border-primary-600'
: $class . ' border-primary-200 dark:border-primary-600 dark:border-opacity-20'
@endphp
<div {{ $attributes->merge(['class' => $classes]) }}>
{{ $slot }}
</div>