Toggle Switch

Toggle switch for dark mode

This tailwind example is contributed by Charlotte Dupont, on 24-Jan-2023. Component is made with Tailwind CSS v3. It is responsive. It supports dark mode.

17.1k
15

Related Examples

  • Dark mode toggle button

    Switch to dark mode without any hassle with this simple JavaScript hack. Sun night button

  • Toggle switch

    toggle switch with smooth animation

    3.9k
  • Button group

    Add active class to clicked button using JavaScript

    10.6k
  • Material 3 Switches [Light]

    Switches that conform to Google's Material 3 design guidelines

    756
  • Elegant Switches

    Useful Tailwind classes for creating several types of basic switches.

    616
  • Configurable 3-Tier Responsive Pricing Table

    A modern, responsive pricing table component inspired by SaaS layouts, built with HTML and Tailwind CSS. Features three distinct pricing tiers displayed in cards, stacking vertically on smaller screens and transitioning to a 3-column grid on large screens (lg breakpoint). Includes interactive top controls for selecting the number of users and toggling between monthly/yearly billing cycles. Each card uses placeholder content for icons, titles, descriptions, features (with checkmarks/info icons), and distinct call-to-action buttons, making it easily adaptable. Styled with subtle background colors and clear typography for excellent readability.

    707
  • Animated hero section template for a ecommerce store

    A bold, animated hero section template that brings personality and energy to your ecommerce shoe store. Features floating 3D elements, vibrant gradients, and playful animations that make your products pop off the screen. Features: - Light & dark mode with smooth transitions and persistent theme preference - Fully responsive design optimized for mobile, tablet, and desktop - Eye-catching floating shoe display with rotating decorative elements - Animated gradient backgrounds and glowing CTAs - Modern color scheme with pink, purple, and yellow accents - Social proof stats section for building trust - Clean, semantic HTML with Tailwind CSS utility classes - Zero dependencies - just copy, customize, and deploy - Open source and free to use for commercial projects For: Sneaker stores, footwear brands, fashion ecommerce sites, streetwear shops, or any modern retail brand looking to make a memorable first impression with a hero section that doesn't take itself too seriously. Quick Setup: Simply replace the emoji placeholder with your product image, update the copy to match your brand voice, adjust the color gradients to your palette, and you're ready to launch!

    195
  • 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.7k

Explore components by Tags

Didn't find component you were looking for?

Search from 3000+ components

tailwindflex logo TailwindFlex.com
Tailwindflex.com is a free Tailwind CSS examples library. It's a one-stop destination for ready-made Tailwind CSS components and templates.

Contact

© 2026 TailwindFlex. All Rights Reserved.

v1.12