Components / Selects and toggles
Searchable select
A select that opens with a search field on top, narrows the list as you type, and marks the current pick with a check.
Assign to
Mara Ellis
Omar Haddad
Tomasz Malek
3 of 12 people
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-basecoat-combobox">
<div class="anchor">
<p class="lbl" id="ukc-bc-cb-label">Assign to</p>
<button class="trig" type="button" aria-haspopup="listbox" aria-expanded="true" aria-labelledby="ukc-bc-cb-label ukc-bc-cb-value"><span id="ukc-bc-cb-value">Mara Ellis</span><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></button>
<div class="pop">
<div class="srch"><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="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></svg><input type="text" role="combobox" value="ma" aria-label="Search the crew" aria-autocomplete="list" aria-expanded="true" aria-controls="ukc-bc-cb-list" aria-activedescendant="ukc-bc-cb-2"></div>
<div class="opts" role="listbox" id="ukc-bc-cb-list" aria-label="Crew">
<div role="option" id="ukc-bc-cb-1" aria-selected="true">Mara Ellis<span class="ck" aria-hidden="true"><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></div>
<div role="option" id="ukc-bc-cb-2" aria-selected="false" class="cur">Omar Haddad</div>
<div role="option" id="ukc-bc-cb-3" aria-selected="false">Tomasz Malek</div>
</div>
<p class="cnt">3 of 12 people</p>
</div>
</div>
</div>
.ukc-toggle-basecoat-combobox { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-toggle-basecoat-combobox *, .ukc-toggle-basecoat-combobox *::before, .ukc-toggle-basecoat-combobox *::after { box-sizing: border-box; }
.ukc-toggle-basecoat-combobox :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-toggle-basecoat-combobox :where(ul, ol) { padding: 0; list-style: none; }
.ukc-toggle-basecoat-combobox :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-toggle-basecoat-combobox :where(a) { color: inherit; }
.ukc-toggle-basecoat-combobox svg { flex: none; }
.ukc-toggle-basecoat-combobox .anchor { position: relative; width: 270px; height: 262px; }
.ukc-toggle-basecoat-combobox .lbl { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.ukc-toggle-basecoat-combobox .trig { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 38px; padding: 0 12px; border: var(--uk-border-width) solid var(--uk-line); border-radius: var(--uk-radius-md); background: var(--uk-paper); font-size: 14px; cursor: pointer; }
.ukc-toggle-basecoat-combobox .trig svg { color: var(--uk-muted); }
.ukc-toggle-basecoat-combobox .pop { position: absolute; top: 72px; left: 0; right: 0; overflow: hidden; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 14px); background: var(--uk-paper); box-shadow: var(--uk-shadow-float); }
.ukc-toggle-basecoat-combobox .srch { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: var(--uk-border-width) solid var(--uk-line); color: var(--uk-muted); }
.ukc-toggle-basecoat-combobox .srch input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; font-size: 14px; color: var(--uk-ink); }
.ukc-toggle-basecoat-combobox .srch input:focus { outline: none; }
.ukc-toggle-basecoat-combobox .opts { padding: 4px; }
.ukc-toggle-basecoat-combobox [role="option"] { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; border-radius: min(var(--uk-radius-sm), 8px); font-size: 14px; cursor: default; }
.ukc-toggle-basecoat-combobox [role="option"]:hover, .ukc-toggle-basecoat-combobox [role="option"].cur { background: var(--ink-soft); }
.ukc-toggle-basecoat-combobox [aria-selected="true"] { font-weight: 600; }
.ukc-toggle-basecoat-combobox .cnt { padding: 6px 12px 8px; border-top: var(--uk-border-width) solid var(--uk-line); font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; color: var(--uk-muted); }
.ukc-toggle-basecoat-combobox .trig:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
More selects and toggles
All 28Skerry Line · crossing of 14 June
Live room BMics are hot. Knock and wait.Mics are muted. Come on in.
Trailer type
Dry van, 53 ftReefer, 53 ftFlatbed, 48 ft
Rates are this week's average, Reno to Boise.