<div> <input id="checkbox-input" type="checkbox" /> <label class="switch" for="checkbox-input"> <svg xml:space="preserve" style="enable-background:new 0 0 128 128" viewBox="0 0 128 128" height="3em" xmlns="http://www.w3.org/2000/svg" > <path d="M77.547 120.684h-5.765l-1.698 3.012a7.477 7.477 0 0 1-6.513 3.804h-.003a7.479 7.479 0 0 1-6.513-3.804l-1.698-3.012h-5.765v-4.06h27.956v4.06z"
#checkbox-input { display: none; } .switch { width: fit-content; padding: 10px; background-color: rgb(46, 46, 46); border-radius: 50px; z-index: 1; cursor: pointer; display: flex;