<label class="relative select-none rounded-full cursor-pointer transition-colors hover:bg-neutral-150 hover:text-neutral-800 bg-light-white p-2 font-medium text-neutral-500 inline-flex gap-2 items-center">
<span class="block min-w-5 w-5 h-5 rounded-full border border-dark-20" style="background-color: #FF0000"></span>
<input class="sr-only peer" type="checkbox" name="color">
<span class="peer-checked:text-neutral-800">Red</span>
<div class="peer-checked:visible invisible ml-auto peer-checked:text-neutral-800">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.99469 7.9047C8.70179 7.6118 8.22692 7.6118 7.93403 7.9047C7.64113 8.19759 7.64113 8.67246 7.93403 8.96536L10.9392 11.9706L7.93403 14.9758C7.64114 15.2687 7.64114 15.7435 7.93403 16.0364C8.22693 16.3293 8.7018 16.3293 8.99469 16.0364L11.9999 13.0312L15.0051 16.0364C15.298 16.3293 15.7729 16.3293 16.0658 16.0364C16.3586 15.7435 16.3586 15.2687 16.0658 14.9758L13.0606 11.9706L16.0658 8.96536C16.3587 8.67246 16.3587 8.19759 16.0658 7.9047C15.7729 7.6118 15.298 7.6118 15.0051 7.9047L11.9999 10.9099L8.99469 7.9047Z" fill="currentColor" />
</svg>
</div>
<span class="rounded-full absolute inset-0 peer-checked:border-neutral-800 border border-neutral-300"></span>
</label>
<label class="relative select-none rounded-full cursor-pointer transition-colors hover:bg-neutral-150 hover:text-neutral-800 bg-light-white p-2 font-medium text-neutral-500 inline-flex gap-2 items-center">
<span class="block min-w-5 w-5 h-5 rounded-full border border-dark-20" style="{% if color.gradient is defined %}background-image:linear-gradient(90deg,{{ color.gradient.from }} 35%, {{ color.gradient.to }} 65%); {% else %}background-color: {{color.hex}}{% endif %}"></span>
<input
{{ alpine_checked ? ':checked="' ~ alpine_checked ~ '"' }}
{{ alpine_click ? '@click="' ~ alpine_click ~ '"' }}
class="sr-only peer" type="checkbox" name="{{ name }}">
<span class="peer-checked:text-neutral-800">{{ color.label }}</span>
<div class="peer-checked:visible invisible ml-auto peer-checked:text-neutral-800">
{% render "@icons-library--close-outline" %}
</div>
<span class="rounded-full absolute inset-0 peer-checked:border-neutral-800 border border-neutral-300"></span>
</label>
{
"name": "color",
"color": {
"label": "Red",
"hex": "#FF0000"
}
}
No notes defined.