Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kikter's avatar

tailwind peer class

I was working on input radio using livewire check for value then I noticed the livewire wire:model is not getting the value but if I remove the peer class it works

<input wire:model="amount" class="sr-only peer" type="radio" value="50" name="answer" id="answer_yes">

<label class="flex p-5 bg-white border border-gray-300 rounded-lg cursor-pointer focus:outline-none hover:bg-gray-50 peer-checked:ring-green-500 peer-checked:ring-2 peer-checked:border-transparent" >50</label>

<
 👍
</div>
0 likes
2 replies

Please or to participate in this conversation.