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

13 lines
655 B
PHP

@props([
'name' => $attributes->whereStartsWith('wire:model')->first(),
])
<flux:with-inline-field variant="inline" :$attributes>
{{-- We have to put tabindex="-1" here because otherwise, Livewire requests will wipe out tabindex state, --}}
{{-- even with durable attributes for some reason... --}}
{{-- We are redundantly setting the size of this container to 1.125rem so that the focus outline isn't oblong. --}}
<ui-radio {{ $attributes->class('flex size-[1.125rem] rounded-full mt-px outline-offset-2') }} data-flux-control data-flux-radio tabindex="-1">
<flux:radio.indicator />
</ui-radio>
</flux:with-inline-field>