unslopkit

Components / Buttons

Toggles that count

Follow, applaud and save as real on and off buttons with no script. The label swaps, the icon fills and the count rolls up by one when pressed.

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

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-toggle-counts">
<div class="wrap">
  <p class="what"><strong>Low Tide Sessions</strong>Marrow Club, five tracks, out on Saltmarsh Records</p>
  <div class="row" role="group" aria-label="Low Tide Sessions">
    <label class="tg follow"><input type="checkbox" aria-label="Follow Marrow Club"><span class="swap" aria-hidden="true"><span class="off"><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="M12 5v14M5 12h14"/></svg>Follow Marrow Club</span><span class="on"><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="M5 12.5l4.5 4.5L19 7.5"/></svg>Following</span></span></label>
    <label class="tg clap"><input type="checkbox" aria-label="Applaud, 213 other people have" checked><span class="face" aria-hidden="true"><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="M12 20.5C5.5 16 3 12.6 3 9.2 3 6.4 5.1 4.5 7.6 4.5c1.8 0 3.4 1 4.4 2.6 1-1.6 2.6-2.6 4.4-2.6 2.5 0 4.6 1.9 4.6 4.7 0 3.4-2.5 6.8-9 11.3z"/></svg>Applaud<span class="num"><span>213</span><span>214</span></span></span></label>
    <label class="tg save"><input type="checkbox" aria-label="Save for later"><span class="face" aria-hidden="true"><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="M6 3h12v18l-6-4.5L6 21z"/></svg><span class="swap"><span class="off">Save</span><span class="on">Saved</span></span></span></label>
  </div>
</div>
</div>

More buttons

All 26
  • 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

  • Start and continue

  • Bordered set