Prefix and suffix
Fields that carry their unit: a currency sign in front, a domain or a unit after.
$USD
https://.app
hours
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-affix">
<div class="stack">
<div class="a"><span>$</span><input type="text" inputmode="decimal" value="1,870.55" aria-label="Amount"><span>USD</span></div>
<div class="a"><span>https://</span><input type="text" value="halden" aria-label="Subdomain"><span>.app</span></div>
<div class="a"><input type="text" inputmode="numeric" value="14" aria-label="Hours"><span>hours</span></div>
</div>
</div>
.ukc-input-affix { 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-affix *, .ukc-input-affix *::before, .ukc-input-affix *::after { box-sizing: border-box; }
.ukc-input-affix :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-input-affix :where(ul, ol) { padding: 0; list-style: none; }
.ukc-input-affix :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-input-affix :where(a) { color: inherit; }
.ukc-input-affix svg { flex: none; }
.ukc-input-affix .stack { display: grid; gap: 10px; max-width: 360px; }
.ukc-input-affix .a { display: flex; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); overflow: hidden; background: var(--uk-paper); }
.ukc-input-affix .a span { display: grid; place-items: center; padding: 0 12px; background: var(--uk-surface); color: var(--uk-muted); font-size: 14px; }
.ukc-input-affix .a span:first-child { border-right: 1px solid var(--uk-line); }
.ukc-input-affix .a span:last-child { border-left: 1px solid var(--uk-line); }
.ukc-input-affix .a input:first-child { padding-left: 12px; }
.ukc-input-affix input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 0; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 15px; background: transparent; }
.ukc-input-affix .a:focus-within { border-color: var(--uk-accent); box-shadow: 0 0 0 3px var(--tint); }
.ukc-input-affix input:focus { outline: none; }
More inputs
All 27You have 186 characters left94 / 280
Good. Add a symbol to make it strong.
Drop photos here or browse
JPG or PNG, up to 10 MB each
- site-north-wall.jpg2.4 MB
- joist-detail.png812 KB
Weekdays only. For example, 28/10/2026
October 2026
Monday Tuesday Wednesday Thursday Friday Saturday Sunday