Switch by Javierrocadev
#e8e8e8
HTML +TailwindCSS
1<label class="relative inline-flex items-center cursor-pointer"> 2 <input class="sr-only peer" value="" type="checkbox"> 3 <div class="peer rounded-full outline-none duration-100 after:duration-500 w-28 h-14 bg-blue-300 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-500 after:content-['No'] after:absolute after:outline-none after:rounded-full after:h-12 after:w-12 after:bg-white after:top-1 after:left-1 after:flex after:justify-center after:items-center after:text-sky-800 after:font-bold peer-checked:after:translate-x-14 peer-checked:after:content-['Yes'] peer-checked:after:border-white"> 4 </div> 5</label>
853 views
Variation of aswitch
MIT License