Speed dial
A floating add button that fans out into three labelled actions and turns its plus into a close mark. The list behind dims while it is open.
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-button-speed-dial">
<div class="stage">
<p class="ctx">Dock 4, waiting to load</p>
<ul class="rows">
<li>Pallet 0418, ceramic tile</li>
<li>Pallet 0419, ceramic tile</li>
<li>Crate 0422, kiln shelves</li>
<li>Pallet 0425, glaze drums</li>
<li>Crate 0431, spare burners</li>
</ul>
<details class="dial" open>
<summary aria-label="Add to dock 4"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></summary>
<ul class="acts">
<li><button type="button"><span class="lbl">Book a pickup</span><span class="ic"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 6h10v9H3zM13 9h4.5l3.5 3.5V15h-8"/><circle cx="7" cy="17.5" r="2"/><circle cx="17" cy="17.5" r="2"/></svg></span></button></li>
<li><button type="button"><span class="lbl">Scan a pallet</span><span class="ic"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 8V4h4M16 4h4v4M20 16v4h-4M8 20H4v-4M8 9v6M12 9v6M16 9v6"/></svg></span></button></li>
<li><button type="button"><span class="lbl">Report a delay</span><span class="ic"><svg width="18" height="18" 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.5 2"/></svg></span></button></li>
</ul>
</details>
</div>
</div>
.ukc-button-speed-dial { 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-button-speed-dial *, .ukc-button-speed-dial *::before, .ukc-button-speed-dial *::after { box-sizing: border-box; }
.ukc-button-speed-dial :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-button-speed-dial :where(ul, ol) { padding: 0; list-style: none; }
.ukc-button-speed-dial :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-button-speed-dial :where(a) { color: inherit; }
.ukc-button-speed-dial svg { flex: none; }
.ukc-button-speed-dial .stage { position: relative; overflow: hidden; max-width: 400px; min-height: 284px; padding: 14px 16px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 14px); background: var(--uk-surface); }
.ukc-button-speed-dial .ctx { margin-bottom: 8px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-button-speed-dial .rows li { padding: 9px 0; border-top: 1px solid var(--uk-line); font-size: 14px; }
.ukc-button-speed-dial .ctx, .ukc-button-speed-dial .rows { transition: opacity var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-button-speed-dial .stage:has(.dial[open]) .ctx, .ukc-button-speed-dial .stage:has(.dial[open]) .rows { opacity: 0.3; }
.ukc-button-speed-dial .dial { position: absolute; right: 16px; bottom: 16px; }
.ukc-button-speed-dial summary { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--uk-radius-md); background: var(--uk-accent); color: var(--uk-accent-ink); box-shadow: 0 6px 16px color-mix(in srgb, black 28%, transparent); list-style: none; cursor: pointer; }
.ukc-button-speed-dial summary::-webkit-details-marker { display: none; }
.ukc-button-speed-dial summary svg { transition: transform var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-button-speed-dial .dial[open] summary { background: var(--uk-ink); color: var(--uk-paper); }
.ukc-button-speed-dial .dial[open] summary svg { transform: rotate(45deg); }
.ukc-button-speed-dial .acts { position: absolute; right: 8px; bottom: calc(100% + 12px); display: grid; gap: 10px; justify-items: end; width: max-content; }
.ukc-button-speed-dial .acts button { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: var(--uk-radius-md); background: none; cursor: pointer; }
.ukc-button-speed-dial .lbl { padding: 4px 10px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-sm); background: var(--uk-paper); color: var(--uk-ink); font-size: 13px; font-weight: 600; box-shadow: 0 2px 6px color-mix(in srgb, black 16%, transparent); }
.ukc-button-speed-dial .ic { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--uk-radius-md); background: var(--uk-paper); color: var(--uk-ink); box-shadow: 0 2px 6px color-mix(in srgb, black 16%, transparent); }
.ukc-button-speed-dial .acts button:hover .ic, .ukc-button-speed-dial .acts button:focus-visible .ic { border-color: var(--uk-accent); background: var(--uk-accent); color: var(--uk-accent-ink); }
.ukc-button-speed-dial .acts button:hover .lbl, .ukc-button-speed-dial .acts button:focus-visible .lbl { border-color: var(--uk-ink); }
.ukc-button-speed-dial summary:focus-visible, .ukc-button-speed-dial .acts button:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ukc-button-speed-dial summary svg, .ukc-button-speed-dial .ctx, .ukc-button-speed-dial .rows { transition: none; } }