Composer with a toolbar
A text area and its tools inside one border: who it goes to on top, then attach, a character count and send along the bottom.
To: Ridgeway job, 4 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-input-basecoat-composer">
<div class="grp">
<label class="lbl" for="ukc-bc-note">Note to the crew</label>
<div class="box">
<p class="to">To: Ridgeway job, 4 people</p>
<textarea id="ukc-bc-note" rows="3" maxlength="500">Gate code changed to 4412. Park on the street, not the drive.</textarea>
<div class="bar">
<button type="button" class="tool" aria-label="Attach a file"><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="M12 5v14M5 12h14"/></svg></button>
<span class="cnt">61 / 500</span>
<button type="button" class="send" aria-label="Send the note"><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 12h14M13 6l6 6-6 6"/></svg></button>
</div>
</div>
</div>
</div>
.ukc-input-basecoat-composer { 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-input-basecoat-composer *, .ukc-input-basecoat-composer *::before, .ukc-input-basecoat-composer *::after { box-sizing: border-box; }
.ukc-input-basecoat-composer :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-input-basecoat-composer :where(ul, ol) { padding: 0; list-style: none; }
.ukc-input-basecoat-composer :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-input-basecoat-composer :where(a) { color: inherit; }
.ukc-input-basecoat-composer svg { flex: none; }
.ukc-input-basecoat-composer .grp { width: 100%; max-width: 420px; }
.ukc-input-basecoat-composer .lbl { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.ukc-input-basecoat-composer .box { border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 14px); background: var(--uk-paper); }
.ukc-input-basecoat-composer .box:focus-within { border-color: var(--uk-ink); box-shadow: 0 0 0 3px var(--tint); }
.ukc-input-basecoat-composer .to { padding: 10px 12px 0; font-size: 12px; font-weight: 600; color: var(--uk-muted); }
.ukc-input-basecoat-composer textarea { display: block; width: 100%; min-height: 76px; padding: 6px 12px 4px; border: 0; background: transparent; font-size: 15px; line-height: 1.45; resize: none; }
.ukc-input-basecoat-composer textarea:focus { outline: none; }
.ukc-input-basecoat-composer .bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px; }
.ukc-input-basecoat-composer .tool { width: 30px; height: 30px; display: grid; place-items: center; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-sm), 8px); background: transparent; color: var(--uk-muted); cursor: pointer; }
.ukc-input-basecoat-composer .cnt { margin-left: auto; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; color: var(--uk-muted); }
.ukc-input-basecoat-composer .send { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: min(var(--uk-radius-sm), 8px); background: var(--uk-accent); color: var(--uk-accent-ink); cursor: pointer; }
.ukc-input-basecoat-composer .tool:focus-visible, .ukc-input-basecoat-composer .send:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
More inputs
All 27Press comma or Enter after each address. Up to 5.
- dispatch@norrlandtimber.se
- ana.ferreira@quaysideimports.pt
- gate3@kestrel
On this shipment