unslopkit

Components / Selects and toggles

Icon swap toggles

A checkbox that trades one icon for another with a quick turn: light and dark, alerts on and off, menu and close, and a word that flips.

Theme
Alerts
Menu
Job 2318
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-toggle-daisyui-swap">
<div class="row">
  <div class="it"><label class="swap rot"><input type="checkbox" checked aria-label="Dark mode"><span class="on"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z"/></svg></span><span class="off"><svg width="20" height="20" 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="4"/><path d="M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"/></svg></span></label><span class="cap">Theme</span></div>
  <div class="it"><label class="swap rot"><input type="checkbox" aria-label="Mute alerts"><span class="on"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z"/><path d="M10 20.5h4M3.5 3.5l17 17"/></svg></span><span class="off"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z"/><path d="M10 20.5h4"/></svg></span></label><span class="cap">Alerts</span></div>
  <div class="it"><label class="swap rot"><input type="checkbox" checked aria-label="Open menu"><span class="on"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></span><span class="off"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16"/></svg></span></label><span class="cap">Menu</span></div>
  <div class="it"><label class="swap flip txt"><input type="checkbox" checked aria-label="Follow job 2318"><span class="on">Following</span><span class="off">Follow</span></label><span class="cap">Job 2318</span></div>
</div>
</div>

More selects and toggles

All 28
  • Assign to

    Mara Ellis
    Omar Haddad
    Tomasz Malek

    3 of 12 people

    Searchable select

  • Deliver bread on

    Standing order for Cafe Lindqvist. Change it any time before 4 pm the day before.

    We do not bake on Sundays.

    Weekday picker

  • Front desk role

    What reception can do at Harbour Street Clinic.

    • AppointmentsBook, move, and cancel
    • Patient contact detailsPhone, address, next of kin
    • InvoicesFees, receipts, and refunds
    • Staff rotaShifts and leave
    • Clinical notesConsult records and results

      Off for this role. Clinicians only.

    Three-way permission rows

  • Size, EU

    Tarn Edge climbing shoe. Fits snug, most people go half a size down.

    Pick a size to see stock. In stock. Posted tomorrow from Sheffield. Only 2 pairs left in this size.

    Size guide

    Size picker with stock

  • Skerry Line · crossing of 14 June

    Boarding was quick and easy.
    The cafe was worth the queue.

    Agreement scale

  • Live room BMics are hot. Knock and wait.Mics are muted. Come on in.

    On air lever