Skip to content

Alpine JS demo by making a fancy tabs component with quite simple components

Notifications You must be signed in to change notification settings

jhonnyfmartinez/alpine-tabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This is an get started project with alpine.js. Most of the basic concepts and directives are covered here.

Feel free to use it for whatever you want.

Installation

Actually there is nothing to install here. Just open the index.html file with any liver server or just with your browser and that's it.

Directives

The main directives and features covered here are:

  • x-data
  • x-on:click (@click)
  • @custom-event
  • $dispatch
  • $el
  • $event
  • x-for
  • x-bind
  • x-text
  • x-show

All of these directives are very common in MVC systems, that means you will be familiared with most of them.

Project

This project is just a simple tabs component that allows to change the entire page background color and get some quotes of Game of Thrones from an awesome API.

Tabs Component

You can get more information from the alpine.js repository.

About

Alpine JS demo by making a fancy tabs component with quite simple components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published