unslopkit

Components / Buttons

Hold to confirm

A destructive button that only counts if you keep it pressed: the fill creeps across for two seconds and snaps back if you let go. For actions with no undo.

Cancel order 2291

400 letterpress invitations for the Okafor wedding. The paper is already cut, so the $120 deposit stays with the shop.

Press and hold for two seconds. Let go early and nothing happens.

Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-button-hold-confirm">
<div class="zone">
  <div class="txt">
    <h3>Cancel order 2291</h3>
    <p>400 letterpress invitations for the Okafor wedding. The paper is already cut, so the $120 deposit stays with the shop.</p>
  </div>
  <div class="acts">
    <button class="hold" type="button"><span class="fill" aria-hidden="true"></span><span class="lbl"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v5M14 11v5"/></svg><span class="words"><span class="rest">Hold to cancel the order</span><span class="held" aria-hidden="true">Keep holding</span></span></span></button>
    <button class="keep" type="button">Keep the order</button>
  </div>
  <p class="hint"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8h.01"/></svg><span>Press and hold for two seconds. Let go early and nothing happens.</span></p>
</div>
</div>

More buttons

All 26
  • Dock 4, waiting to load

    • Pallet 0418, ceramic tile
    • Pallet 0419, ceramic tile
    • Crate 0422, kiln shelves
    • Pallet 0425, glaze drums
    • Crate 0431, spare burners

    Speed dial

  • Low Tide SessionsMarrow Club, five tracks, out on Saltmarsh Records

    Toggles that count

  • Fittings take forty minutes. The tea is on us.

    Double hairline

  • See the autumn show

    Forty years of Hebridean weaving. Until 18 January, free on Thursdays.

    Circled arrow

  • Ticket stub

  • Table 7, Catan01:24 left

    Arcade buttons