Created
November 13, 2023 08:30
-
-
Save trvswgnr/6daa0fe0b6588778a560f14feca5c53a to your computer and use it in GitHub Desktop.
no js dialog with tailwind
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label for="modal1">clicky boi</label> | |
<input id="modal1" class="peer" type="checkbox" hidden /> | |
<label for="modal1" class="hidden peer-checked:block bg-black bg-opacity-25 fixed h-full w-full top-0 left-0"></label> | |
<dialog class="hidden peer-checked:block"> | |
<p>lgtm ¯\_(ツ)_/¯</p> | |
<label for="modal1">close</label> | |
</dialog> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment