Skip to content

Instantly share code, notes, and snippets.

@minthemiddle
Created July 9, 2020 20:14
Show Gist options
  • Save minthemiddle/e7d6977c2e12beda6ff9fc8b3b9da008 to your computer and use it in GitHub Desktop.
Save minthemiddle/e7d6977c2e12beda6ff9fc8b3b9da008 to your computer and use it in GitHub Desktop.
Markdium-How to use AlpineJS with Laravel Mix
<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