@props([
'label' => null,
'field' => null,
'format' => null,
])
@php
$format = is_array($format) ? \Illuminate\Support\Js::encode($format) : $format;
@endphp
class(['flex items-center gap-2 p-2 text-xs [:where(&)]:text-zinc-500 dark:[:where(&)]:text-zinc-300']) }}>
{{ $slot }}
@if (is_string($label) && $label !== '')
{{ $label }}
@elseif ($label)
{{ $label }}
@endif
@if ($field)
@endif