Answers for "alpine js dependency dropdown"

2

Alpine js dropdown

<div x-data="{ open: false }">
    <button @click="open = true">Open Dropdown</button>

    <ul
        x-show="open"
        @click.away="open = false"
    >
        Dropdown Body
    </ul>
</div>
Posted by: Guest on October-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language