unslopkit

Components / Selects and toggles

View switcher with icons

A segmented control with an icon per view and a thumb that slides to the chosen one. Labels drop away in a narrow space and the icons stay.

Orders

38 open orders, newest first38 open orders in 4 stages38 open orders over 9 delivery days38 open orders, 31 inside the ring road

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-view-switcher">
<div class="vs">
  <div class="hd">
    <p class="ttl">Orders</p>
    <div class="seg" role="radiogroup" aria-label="View orders as">
      <label><input class="v1" type="radio" name="ukc-toggle-view-switcher-view"><span><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h16"/></svg><span class="tx">List</span></span></label>
      <label><input class="v2" type="radio" name="ukc-toggle-view-switcher-view" checked><span><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="6" height="16" rx="1"/><rect x="14" y="4" width="6" height="10" rx="1"/></svg><span class="tx">Board</span></span></label>
      <label><input class="v3" type="radio" name="ukc-toggle-view-switcher-view"><span><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="5" width="18" height="16" rx="1"/><path d="M3 10h18M8 3v4M16 3v4"/></svg><span class="tx">Calendar</span></span></label>
      <label><input class="v4" type="radio" name="ukc-toggle-view-switcher-view"><span><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z"/><circle cx="12" cy="9.5" r="2.5"/></svg><span class="tx">Map</span></span></label>
    </div>
  </div>
  <p class="st" aria-live="polite"><span class="s1">38 open orders, newest first</span><span class="s2">38 open orders in 4 stages</span><span class="s3">38 open orders over 9 delivery days</span><span class="s4">38 open orders, 31 inside the ring road</span></p>
</div>
</div>

More selects and toggles

All 28
  • The Third Man

    Sat 8:15 pm · Screen 2 · Roxy Lane Cinema

    • Free
    • Yours
    • Taken

    $11 each

    Seat picker

  • Washer 7 · choose a program

    30 C · 46 min · $4.50Cold · 38 min · $4.5040 C · 58 min · $5.0030 C · 30 min · $4.00No water · 12 min · $1.50

    Program dial

  • Unlimited classes · Kiln Street Yoga

    $118$98a month

    Billed each month. Pause or cancel any time.Billed as $1,176 once a year, mat hire included.

    Monthly Yearly Save $240

    Billing period switch

  • How should we contact you?

    Large radios

  • Email notifications
    Weekly digest

    Labelled switch

  • Auto-send invoices

    On

    Round hours up

    Off

    Switch with state text