Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

alpinejs

<!-- GET STARTED WITH ALPINEJS! -->
<script src="//unpkg.com/alpinejs" defer></script>
 
<div x-data="{ open: false }">
    <button @click="open = true">Expand</button>
 
    <span x-show="open">
      Content...
    </span>
</div>
Source by alpinejs.dev #
 
PREVIOUS NEXT
Tagged: #alpinejs
ADD COMMENT
Topic
Name
3+3 =