Car-Repairs-Shop/resources/views/flux/input/expandable.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

17 lines
383 B
PHP

@php
$attributes = $attributes->merge([
'variant' => 'subtle',
'class' => '-me-1',
'square' => true,
'size' => null,
]);
@endphp
<flux:button
:$attributes
:size="$size === 'sm' || $size === 'xs' ? 'xs' : 'sm'"
x-on:click="$el.closest('[data-flux-input]').querySelector('input').value = ''"
>
<flux:icon.chevron-down variant="micro" />
</flux:button>