Components / Selects and toggles
Three-way permission rows
Each row picks Off, View, or Edit for one area, with an icon per level and a locked row that explains itself. For roles and sharing settings.
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-permission-rows">
<section class="pm" aria-labelledby="ukc-toggle-permission-rows-title">
<div class="hd"><h3 id="ukc-toggle-permission-rows-title">Front desk role</h3><p>What reception can do at Harbour Street Clinic.</p></div>
<ul class="rows">
<li class="row"><div class="what"><span class="t">Appointments</span><span class="d">Book, move, and cancel</span></div><div class="tri" role="radiogroup" aria-label="Appointments"><label class="off"><input type="radio" name="ukc-toggle-permission-rows-appt"><span><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"><circle cx="12" cy="12" r="8"/><path d="M6.5 17.5l11-11"/></svg>Off</span></label><label class="view"><input type="radio" name="ukc-toggle-permission-rows-appt"><span><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="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></svg>View</span></label><label class="edit"><input type="radio" name="ukc-toggle-permission-rows-appt" checked><span><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="M4 20l1-4.5L16 4.5l3.5 3.5L8.5 19z"/><path d="M13.5 7l3.5 3.5"/></svg>Edit</span></label></div></li>
<li class="row"><div class="what"><span class="t">Patient contact details</span><span class="d">Phone, address, next of kin</span></div><div class="tri" role="radiogroup" aria-label="Patient contact details"><label class="off"><input type="radio" name="ukc-toggle-permission-rows-contact"><span><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"><circle cx="12" cy="12" r="8"/><path d="M6.5 17.5l11-11"/></svg>Off</span></label><label class="view"><input type="radio" name="ukc-toggle-permission-rows-contact"><span><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="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></svg>View</span></label><label class="edit"><input type="radio" name="ukc-toggle-permission-rows-contact" checked><span><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="M4 20l1-4.5L16 4.5l3.5 3.5L8.5 19z"/><path d="M13.5 7l3.5 3.5"/></svg>Edit</span></label></div></li>
<li class="row"><div class="what"><span class="t">Invoices</span><span class="d">Fees, receipts, and refunds</span></div><div class="tri" role="radiogroup" aria-label="Invoices"><label class="off"><input type="radio" name="ukc-toggle-permission-rows-inv"><span><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"><circle cx="12" cy="12" r="8"/><path d="M6.5 17.5l11-11"/></svg>Off</span></label><label class="view"><input type="radio" name="ukc-toggle-permission-rows-inv" checked><span><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="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></svg>View</span></label><label class="edit"><input type="radio" name="ukc-toggle-permission-rows-inv"><span><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="M4 20l1-4.5L16 4.5l3.5 3.5L8.5 19z"/><path d="M13.5 7l3.5 3.5"/></svg>Edit</span></label></div></li>
<li class="row"><div class="what"><span class="t">Staff rota</span><span class="d">Shifts and leave</span></div><div class="tri" role="radiogroup" aria-label="Staff rota"><label class="off"><input type="radio" name="ukc-toggle-permission-rows-rota" checked><span><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"><circle cx="12" cy="12" r="8"/><path d="M6.5 17.5l11-11"/></svg>Off</span></label><label class="view"><input type="radio" name="ukc-toggle-permission-rows-rota"><span><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="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></svg>View</span></label><label class="edit"><input type="radio" name="ukc-toggle-permission-rows-rota"><span><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="M4 20l1-4.5L16 4.5l3.5 3.5L8.5 19z"/><path d="M13.5 7l3.5 3.5"/></svg>Edit</span></label></div></li>
<li class="row"><div class="what"><span class="t">Clinical notes</span><span class="d">Consult records and results</span></div><p class="lockn"><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> Off for this role. Clinicians only.</p></li>
</ul>
</section>
</div>
.ukc-toggle-permission-rows { 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-permission-rows *, .ukc-toggle-permission-rows *::before, .ukc-toggle-permission-rows *::after { box-sizing: border-box; }
.ukc-toggle-permission-rows :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-toggle-permission-rows :where(ul, ol) { padding: 0; list-style: none; }
.ukc-toggle-permission-rows :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-toggle-permission-rows :where(a) { color: inherit; }
.ukc-toggle-permission-rows svg { flex: none; }
.ukc-toggle-permission-rows .pm { max-width: 480px; overflow: hidden; border: var(--uk-border-width) solid var(--uk-line); border-radius: var(--uk-radius-lg); background: var(--uk-paper); }
.ukc-toggle-permission-rows .hd { padding: 14px 16px; border-bottom: 1px solid var(--uk-line); background: var(--uk-surface); }
.ukc-toggle-permission-rows h3 { font-family: var(--uk-font-display, inherit); font-size: 18px; font-weight: 600; }
.ukc-toggle-permission-rows .hd p { font-size: 13px; color: var(--uk-muted); }
.ukc-toggle-permission-rows .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--uk-line); }
.ukc-toggle-permission-rows .row:last-child { border-bottom: 0; }
.ukc-toggle-permission-rows .what { flex: 1 1 150px; display: grid; }
.ukc-toggle-permission-rows .t { font-size: 14px; font-weight: 600; }
.ukc-toggle-permission-rows .d { font-size: 13px; color: var(--uk-muted); }
.ukc-toggle-permission-rows .tri { display: inline-grid; grid-template-columns: repeat(3, auto); padding: 2px; border: var(--uk-border-width) solid var(--uk-line); border-radius: var(--uk-radius-sm); background: var(--ink-soft); }
.ukc-toggle-permission-rows .tri label { position: relative; cursor: pointer; }
.ukc-toggle-permission-rows .tri input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.ukc-toggle-permission-rows .tri label > span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: calc(var(--uk-radius-sm) - 2px); color: var(--uk-muted); font-size: 13px; }
.ukc-toggle-permission-rows .tri label:hover > span { color: var(--uk-ink); }
.ukc-toggle-permission-rows .tri input:checked + span { background: var(--uk-ink); color: var(--uk-paper); font-weight: 600; }
.ukc-toggle-permission-rows .tri .off input:checked + span { background: var(--uk-paper); color: var(--uk-ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ukc-toggle-permission-rows .tri input:focus-visible + span { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-toggle-permission-rows .lockn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--uk-muted); }
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.
Orders
38 open orders, newest first38 open orders in 4 stages38 open orders over 9 delivery days38 open orders, 31 inside the ring road
The Third Man
Sat 8:15 pm · Screen 2 · Roxy Lane Cinema
- Free
- Yours
- Taken
$11 each