unslopkit

Components / Selects and toggles

Select built on details

A select made from a details element and real radios, so it opens, closes, and shows the chosen value with no script. Options carry a second line and a rate.

Trailer type

Dry van, 53 ftReefer, 53 ftFlatbed, 48 ft

Rates are this week's average, Reno to Boise.

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-details-select">
<div class="ds">
  <p class="lbl" id="ukc-toggle-details-select-label">Trailer type</p>
  <details open>
    <summary aria-labelledby="ukc-toggle-details-select-label ukc-toggle-details-select-value"><span id="ukc-toggle-details-select-value"><span class="val v1">Dry van, 53 ft</span><span class="val v2">Reefer, 53 ft</span><span class="val v3">Flatbed, 48 ft</span></span><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 9l6 6 6-6"/></svg></summary>
    <div class="list" role="radiogroup" aria-labelledby="ukc-toggle-details-select-label">
      <label class="opt"><input class="o1" type="radio" name="ukc-toggle-details-select-trailer"><span class="mk"><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"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="tx"><span class="t">Dry van, 53 ft</span><span class="d">26 pallets, dock height</span></span><span class="rate">$2.10/mi</span></label>
      <label class="opt"><input class="o2" type="radio" name="ukc-toggle-details-select-trailer" checked><span class="mk"><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"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="tx"><span class="t">Reefer, 53 ft</span><span class="d">Holds 34 to 38 F, fuel extra</span></span><span class="rate">$2.65/mi</span></label>
      <label class="opt"><input class="o3" type="radio" name="ukc-toggle-details-select-trailer"><span class="mk"><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"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="tx"><span class="t">Flatbed, 48 ft</span><span class="d">Tarps and straps included</span></span><span class="rate">$2.40/mi</span></label>
      <label class="opt na"><input type="radio" name="ukc-toggle-details-select-trailer" disabled><span class="mk"><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"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="tx"><span class="t">Step deck</span><span class="d">None free on this lane until Monday</span></span><span class="rate"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="11" width="14" height="10" rx="1"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></svg></span></label>
    </div>
  </details>
  <p class="foot">Rates are this week's average, Reno to Boise.</p>
</div>
</div>

More selects and toggles

All 28
  • Orders

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

    View switcher with icons

  • 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