Button group
Add active class to clicked button using JavaScript
This tailwind example is contributed by TailwindFlex, on 24-Sep-2022. Component is made with Tailwind v3.4. It is responsive.
Related Examples
-
Dark mode toggle button
Switch to dark mode without any hassle with this simple JavaScript hack. Sun night button
22.3k -
17.5k
-
Hamburger menu button with open/close animation
Open and close animation onclick requires alpineJs
21.2k -
Toggle Switch
Toggle switch for dark mode
18.2k -
Interactive Toggle Switch with Smooth Animation
A stylish toggle switch component built with Tailwind CSS and enhanced with minimal JavaScript. This toggle switch features smooth color transitions, dynamic text ("ON/OFF"), and a moving indicator ball, providing a visually appealing and functional design. Ideal for modern web interfaces where toggling functionality is required. Easily customizable for various use cases.
2.6k -
Button group
nice and simple buttons with a hover effect
8.6k -
Lots of button examples
tailwind button examples
1.4k -
Button With Loader
Tailwind Loader
3.7k -
20.2k
Browse by topic
Explore components by Tags
Jump straight to the UI pattern you need.
Can't find it?
Didn't find the component you were looking for?
Search across 3,000+ community-built components and grab the code in seconds.