Modify card component

This commit is contained in:
Matt Young 2025-12-12 20:51:26 -06:00
parent 8dc75b2656
commit 61f6e3d4aa
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
@php use Illuminate\View\ComponentSlot; @endphp
@props(['header' => null, 'body' => null])
<div {{ $attributes->merge(['class' => 'h-full flex flex-col']) }}>
@if($header)
@if($header instanceof ComponentSlot)
<div {{ $header->attributes->merge(['class'=>'bg-gray-700 text-white p-3 font-semibold rounded-t-md']) }}>
{{ $header }}
</div>