Skip to content

Instantly share code, notes, and snippets.

@fiqryq
Created July 10, 2022 16:06
Show Gist options
  • Save fiqryq/3b26ec5df8ef4de43998577894ae3ae1 to your computer and use it in GitHub Desktop.
Save fiqryq/3b26ec5df8ef4de43998577894ae3ae1 to your computer and use it in GitHub Desktop.
<div class="w-screen h-screen p-12">
<div class="grid grid-cols-2 gap-2">
<div class="flex items-center p-2 cursor-pointer w-full relative">
<input type="radio" name="radio" id="radio-one" class="w-5 h-5 cursor-pointer peer z-10" />
<label for="radio-one" class="pl-8 border-[1px] rounded-md p-2 left-0 w-full absolute peer-checked:bg-slate-200 cursor-pointer">Radio One</label>
</div>
<div class="flex items-center p-2 cursor-pointer w-full relative">
<input type="radio" name="radio" id="radio-two" class="w-5 h-5 cursor-pointer peer z-10" />
<label for="radio-two" class="pl-8 border-[1px] rounded-md p-2 left-0 w-full absolute peer-checked:bg-slate-200 cursor-pointer">Radio One</label>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment