@props([ 'name' => 'code', 'length' => 6, 'label' => null, ]) {{-- Segmented one-time-code input. Alpine keeps the visible segments; a hidden field carries the joined value for the native form POST — or, inside a Livewire form, for wire:model. wire:model needs both the attribute (so Livewire's directive scan finds it — hence spreading $attributes here) and a real "input" event: Alpine's :value binding only ever writes the DOM property, which fires nothing on its own. --}}