Skip to content

Button Library · Signature

Slide to Confirm

Drag the knob all the way, a click cannot trigger it.

A plain click does nothing. Listen for the confirm event, it fires once the action is complete.

States

  • Default

  • Hover

  • Active

  • Focus

Code

sig-slide.html

<button class="btn-sig-slide" type="button" data-done="Paid">
  <span class="btn-sig-slide__fill" aria-hidden="true"></span>
  <span class="btn-sig-slide__word" data-label>Slide to pay</span>
  <span class="btn-sig-slide__thumb" data-thumb aria-hidden="true">
    <svg class="btn-sig-slide__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
      <path d="M5 12h14"></path>
      <path d="m13 6 6 6-6 6"></path>
    </svg>
  </span>
</button>

More in Signature