Car-Repairs-Shop/resources/views/flux/subheading.blade.php
sackey e839d40a99
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
Initial commit
2025-07-30 17:15:50 +00:00

20 lines
383 B
PHP

@props([
'size' => 'base',
])
@php
$classes = Flux::classes()
->add(match ($size) {
'xl' => 'text-lg',
'lg' => 'text-base',
default => 'text-sm',
'sm' => 'text-xs',
})
->add('[:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70')
;
@endphp
<div {{ $attributes->class($classes) }} data-flux-subheading>
{{ $slot }}
</div>