Alpine JS Click Event Example

May 08, 2021 . Admin

Hi Guys,

In this Tutorial,I will learn you how to use alpine js @click can easy and simply use alpine js simple click event.

you can also use this example with php laravel alpine js project.

I will give you simple click event using alpine js you can see on below example code. you can simply copy and check that.

<!DOCTYPE html>
	<title>Alpine JS @click Event Example -</title>
	<script src="" defer></script>

<div x-data="{ open: false }">
	<button @click="open = !open">Click to List Categories</button>
	<ul x-show="open">


I Hope It Will Help You..

#Alpine JS