unslopkit

Components / Inputs

Scoped search with recents

A search bar that starts with a scope picker, and a panel of recent searches under it, each tagged with where it was run and removable on its own.

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-input-scoped-search">
<form class="ss" role="search" action="#">
  <div class="bar">
    <div class="scope">
      <label class="sr" for="ukc-input-scoped-search-in">Search in</label>
      <select id="ukc-input-scoped-search-in"><option>All racks</option><option selected>Vinyl</option><option>Cassettes</option><option>Sheet music</option></select>
      <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="M6 9l6 6 6-6"/></svg>
    </div>
    <label class="sr" for="ukc-input-scoped-search-q">Search Halfmoon Records</label>
    <input id="ukc-input-scoped-search-q" type="text" inputmode="search" value="alice col" autocomplete="off" aria-controls="ukc-input-scoped-search-panel">
    <button class="go" type="button" aria-label="Search"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></svg></button>
  </div>
  <div class="panel" id="ukc-input-scoped-search-panel">
    <div class="ph"><h3>Recent searches</h3><button type="button" class="clr">Clear all</button></div>
    <ul>
      <li><button class="rec" type="button"><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"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg><span class="w"><mark>alice col</mark>trane journey in satchidananda</span><span class="in">Vinyl</span></button><button class="x" type="button" aria-label="Forget alice coltrane journey in satchidananda"><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"><path d="M6 6l12 12M18 6L6 18"/></svg></button></li>
      <li><button class="rec" type="button"><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"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg><span class="w">four track demo tapes</span><span class="in">Cassettes</span></button><button class="x" type="button" aria-label="Forget four track demo tapes"><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"><path d="M6 6l12 12M18 6L6 18"/></svg></button></li>
      <li><button class="rec" type="button"><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"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg><span class="w">satie gymnopedies, easy piano</span><span class="in">Sheet music</span></button><button class="x" type="button" aria-label="Forget satie gymnopedies, easy piano"><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"><path d="M6 6l12 12M18 6L6 18"/></svg></button></li>
    </ul>
    <p class="tip">Looking in Vinyl only. <a href="#">Search all racks</a></p>
  </div>
</form>
</div>

More inputs

All 27
  • Your stay at Tarn Hollow

    You would leave before you arrive. Pick Sunday 14 February or later.

    Keys from 3 pm, out by 10 am. Two nights at least, $148 a night.

    Date range pair

  • Osteria Bellwether, the back room

    A table for on at , under the name . We are celebrating .

    We hold a table for 15 minutes, then give it to the bar.

    Fill in the sentence

  • Where should the framed print go?

    The postcode looks cut short. A full one reads like TR11 3QA.

    Glazed frames go by two-person courier, Tuesday to Friday.

    Grouped rows

  • Capitals, numbers and spaces. 16 characters fit on one strip.

    14 of 16

    Tape

    Label maker

  • Lot 0417. Ercol armchair, 1962

    Whole pounds. Buyers see the asking price only, and lower offers are turned down for you.

    Price tag

  • As it appears on your invoices

    Error: Enter an email address in the right format, like name@example.com

    Label, hint, error