Components / Selects and toggles
Select with its list open
A select that shows its chosen value and chevron, drawn with the option list open and the choice checked.
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-select-open">
<div class="sel">
<label>Payment terms</label>
<button class="trigger" type="button" aria-expanded="true">Net 15 <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></button>
<ul class="menu" role="listbox">
<li role="option">Due on receipt</li>
<li role="option">Net 7</li>
<li role="option" aria-selected="true" class="on">Net 15 <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="M5 12.5l4.5 4.5L19 7.5"/></svg></li>
<li role="option">Net 30</li>
</ul>
</div>
</div>
.ukc-toggle-select-open { 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-select-open *, .ukc-toggle-select-open *::before, .ukc-toggle-select-open *::after { box-sizing: border-box; }
.ukc-toggle-select-open :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-toggle-select-open :where(ul, ol) { padding: 0; list-style: none; }
.ukc-toggle-select-open :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-toggle-select-open :where(a) { color: inherit; }
.ukc-toggle-select-open svg { flex: none; }
.ukc-toggle-select-open .sel { position: relative; max-width: 260px; display: grid; gap: 6px; }
.ukc-toggle-select-open label { font-weight: 600; font-size: 14px; }
.ukc-toggle-select-open .trigger { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 12px; border: 1px solid var(--uk-accent); border-radius: var(--uk-radius-md); background: var(--uk-paper); box-shadow: 0 0 0 3px var(--tint); cursor: pointer; text-align: left; }
.ukc-toggle-select-open .menu { margin-top: 2px; padding: 4px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); background: var(--uk-paper); box-shadow: var(--uk-shadow-float, 0 8px 24px rgba(0,0,0,0.12)); }
.ukc-toggle-select-open .menu li { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: var(--uk-radius-sm); font-size: 14px; cursor: pointer; }
.ukc-toggle-select-open .menu li:hover { background: var(--ink-soft); }
.ukc-toggle-select-open .menu li.on { color: var(--accent-deep); font-weight: 600; }
More selects and toggles
All 28Send receipts automatically
Clients get a receipt the moment a payment clears.
Late payment reminders
A polite nudge 3 days after the due date.
Share job photos with clients
Photos stay private to your crew when this is off.
- 0%25%50%
Trades on this job 3 selected