- Home
-
Button group
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 CSS v3. It is responsive.

Author TailwindFlex
Related Examples
-
2 years ago14.1k
-
Dark mode toggle button
Switch to dark mode without any hassle with this simple JavaScript hack. Sun night button
1 year ago17.5k -
1 year ago14.2k
-
Hamburger menu button with open/close animation
Open and close animation onclick requires alpineJs
2 years ago17.7k -
Toggle Switch
Toggle switch for dark mode
2 years ago14.7k -
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.
1 month ago277 -
2 months ago512
-
Gradient Button
These buttons use a style that includes two contrasted colors creating an impressive mesh gradient effect.
11 months ago2.7k -
2 years ago11k
-
2 years ago9.5k
-
1 year ago33.4k
-
Toggle switch
toggle switch with smooth animation
10 months ago2.4k
Explore components by Tags
Didn't find component you were looking for?
Search from 2000+ components