Skip to content

Instantly share code, notes, and snippets.

@ipropper
Last active August 28, 2025 21:17
Show Gist options
  • Save ipropper/2deb178ab06075998108edab01da61f3 to your computer and use it in GitHub Desktop.
Save ipropper/2deb178ab06075998108edab01da61f3 to your computer and use it in GitHub Desktop.
{% comment %}
Props:
- isSelected: Boolean indicating if the radio button is selected
{% endcomment %}
<div
class='w-6 h-6 rounded-full border-2 flex items-center justify-center'
:class="isSelected ? 'border-[#B73253]' : 'border-gray-400'"
>
<div
class='w-4 h-4 rounded-full'
:class="isSelected ? 'bg-[#B73253]' : 'bg-transparent'"
></div>
</div>
<div x-data="{ get isSelected() { return selectedPlan === 'one-time' } }">
{% render 'component-radio-button' %}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment