├── .gitignore ├── img ├── faq.png ├── tabs.png ├── alert.png ├── navbar.png ├── tooltip.png ├── modal-confirm.png ├── modal-sidebar.png ├── hover-dropdown-menu.png ├── modal-sidebar-button.png └── click-dropdown-animation.png ├── LICENSE.md ├── alert.html ├── README.md ├── dropdown-animation.html ├── hover-dropdown-menu.html ├── tabs.html ├── modal-confirm.html ├── tooltip.html ├── modal-sidebar.html ├── faq.html └── navbar.html /.gitignore: -------------------------------------------------------------------------------- 1 | /test -------------------------------------------------------------------------------- /img/faq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/faq.png -------------------------------------------------------------------------------- /img/tabs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/tabs.png -------------------------------------------------------------------------------- /img/alert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/alert.png -------------------------------------------------------------------------------- /img/navbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/navbar.png -------------------------------------------------------------------------------- /img/tooltip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/tooltip.png -------------------------------------------------------------------------------- /img/modal-confirm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/modal-confirm.png -------------------------------------------------------------------------------- /img/modal-sidebar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/modal-sidebar.png -------------------------------------------------------------------------------- /img/hover-dropdown-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/hover-dropdown-menu.png -------------------------------------------------------------------------------- /img/modal-sidebar-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/modal-sidebar-button.png -------------------------------------------------------------------------------- /img/click-dropdown-animation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josuapsianturi/tac/HEAD/img/click-dropdown-animation.png -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Josua Putra Sianturi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /alert.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Alert 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | This is a green alert, click x button to close it ! 24 | 25 | 28 |
29 | 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | [Tailwind](https://tailwindcss.com/) [Alpine](https://github.com/alpinejs/alpine/) Components 4 | 5 |

6 | 7 | > **Note** 8 | > Let's check all the components on codepen.io https://codepen.io/colleion/ZMKKLBct 9 | 10 | ## VIEW 11 | 1. [Hover dropdown menu](https://github.com/josuapsianturi/tac/blob/master/hover-dropdown-menu.html) 12 | ![hover-dropdown-menu](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/hover-dropdown-menu.png) 13 | 14 | 2. [Frequently asked questions](https://github.com/josuapsianturi/tac/blob/master/faq.html) 15 | ![frequently-asked-questions](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/faq.png) 16 | 17 | 3. [Navbar](https://github.com/josuapsianturi/tac/blob/master/navbar.html) 18 | ![navbar](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/navbar.png) 19 | 20 | 4. [Tooltip](https://github.com/josuapsianturi/tac/blob/master/tooltip.html) 21 | ![tooltip](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/tooltip.png) 22 | 23 | 5. [Tabs](https://github.com/josuapsianturi/tac/blob/master/tabs.html) 24 | ![tabs](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/tabs.png) 25 | 26 | 27 | 6. [Click dropdown animation](https://github.com/josuapsianturi/tac/blob/master/dropdown-animation.html) 28 | ![Click dropdown animation](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/click-dropdown-animation.png) 29 | 30 | 7. [Modal confirm](https://github.com/josuapsianturi/tac/blob/master/modal-confirm.html) 31 | ![Modal confirm](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/modal-confirm.png) 32 | 33 | 8. [Modal sidebar](https://github.com/josuapsianturi/tac/blob/master/modal-sidebar.html) 34 | ![Modal sidebar buttons](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/modal-sidebar-button.png) 35 | ![Modal sidebar](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/modal-sidebar.png) 36 | 37 | 9. [Alert](https://github.com/josuapsianturi/tac/blob/master/alert.html) 38 | ![Alert](https://raw.githubusercontent.com/josuapsianturi/tailwind-alpine-components/master/img/alert.png) 39 | -------------------------------------------------------------------------------- /dropdown-animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Click Dropdown Animation 8 | 9 | 10 | 11 | 14 | 15 | 16 |
17 |
18 | 27 | 28 | 39 |
40 |
41 | 42 | 43 | -------------------------------------------------------------------------------- /hover-dropdown-menu.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Hover Dropdown 8 | 9 | 10 | 11 | 14 | 15 | 16 |
17 | 18 |
19 | 20 | 30 | 31 | 32 | 33 |
41 | Tailwind 42 | Alpine 43 | Laravel 44 | Livewire 45 |
46 | 47 |
48 | 49 |
50 | 51 | 52 | -------------------------------------------------------------------------------- /tabs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Tabs 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 |
18 | 19 |
20 | 21 |
22 | 27 | 32 |
33 | 34 | 35 | 36 |
37 | 38 |
39 | This tabs using persist plugin 40 |
41 | 42 | 43 |
45 | # Persist Plugin 46 |
Alpine's Persist plugin allows you to persist Alpine state across page loads.
47 |
48 | This is useful for persisting search filters, active tabs , 49 | and other features where users will be frustrated if their configuration is reset after refreshing or leaving and revisiting a page. 50 |
51 |
52 | 53 |
54 | 55 |
56 | 57 |
58 | 59 | 60 | -------------------------------------------------------------------------------- /modal-confirm.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Modal Confirm 8 | 9 | 10 | 11 | 16 | 17 | 18 |
19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
34 |
35 |
36 |
Modal title
37 | 38 | 39 | 44 | 45 |
46 | 47 |
Lorem ipsum dolor sit amet consectetur adipisicing earum?
48 |
49 | 50 | 51 |
52 |
53 |
54 | 55 |
56 |
57 | 58 | 59 | -------------------------------------------------------------------------------- /tooltip.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Tooltip 8 | 9 | 10 | 11 | 14 | 15 | 16 |
17 | 18 | 19 |
20 |
23 | 27 |
28 | 29 |
33 |
35 | You have no unread notifications 36 |
37 | 38 | 39 | 40 |
41 |
42 | 43 | 44 | 45 |
46 |
49 | 55 |
56 | 57 |
61 |
63 | Media 64 |
65 |
66 |
67 | 68 | 69 |
70 | 71 | 72 | -------------------------------------------------------------------------------- /modal-sidebar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Modal Sidebar 8 | 9 | 10 | 11 | 16 | 17 |
18 | 66 |
67 | 68 | -------------------------------------------------------------------------------- /faq.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | tac-faq 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 |
Frequently Asked Questions
16 | 17 | 18 | 19 |
20 |
21 | 22 |
24 |
26 |
27 | What is x-data ? 28 | 30 | 31 | 32 | 33 | 34 |
35 |
36 | 37 |
40 |
41 | Declare a new Alpine component and its data for a block of HTML
42 |
43 |
44 | 45 | 46 | 47 |
49 |
50 |
51 | What is x-bind ? 52 | 54 | 55 | 56 | 57 | 58 |
59 |
60 | 61 |
64 |
65 | Dynamically set HTML attributes on an element. 66 |
67 |
68 |
69 | 70 |
71 | 72 |
73 | 74 |
76 |
77 |
78 | What is $store ? 79 | 81 | 82 | 83 | 84 | 85 |
86 |
87 | 88 |
91 |
92 | Access a global store registered using Alpine.store(...) 93 |
94 |
95 |
96 | 97 | 98 | 99 |
101 |
102 |
103 | What is x-on ? 104 | 106 | 107 | 108 | 109 | 110 |
111 |
112 | 113 |
116 |
117 | Listen for browser events on an element 118 |
119 |
120 |
121 | 122 |
123 |
124 | 125 |
126 | 127 | 128 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /navbar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Navbar 8 | 9 | 10 | 11 | 15 | 16 | 149 | 174 | 175 | --------------------------------------------------------------------------------