Created
July 9, 2020 20:14
-
-
Save minthemiddle/e7d6977c2e12beda6ff9fc8b3b9da008 to your computer and use it in GitHub Desktop.
Markdium-How to use AlpineJS with Laravel Mix
This file contains 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
<div x-data="{ open: false }"> | |
<button @click="open = true">Open Dropdown</button> | |
<ul | |
x-show="open" | |
@click.away="open = false" | |
> | |
Dropdown Body | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment