Drop zone with files
A dashed area to drop files on, then the files as rows with size and a remove button.
Drop photos here or browse
JPG or PNG, up to 10 MB each
- site-north-wall.jpg2.4 MB
- joist-detail.png812 KB
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-dropzone">
<div class="dz">
<div class="zone"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 16V4M7 9l5-5 5 5M4 20h16"/></svg><p><strong>Drop photos here</strong> or <a href="#">browse</a></p><p class="s">JPG or PNG, up to 10 MB each</p></div>
<ul>
<li><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="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span>site-north-wall.jpg</span><span class="z">2.4 MB</span><button type="button" aria-label="Remove site-north-wall.jpg"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></li>
<li><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="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span>joist-detail.png</span><span class="z">812 KB</span><button type="button" aria-label="Remove joist-detail.png"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></li>
</ul>
</div>
</div>
.ukc-input-dropzone { 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-dropzone *, .ukc-input-dropzone *::before, .ukc-input-dropzone *::after { box-sizing: border-box; }
.ukc-input-dropzone :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-input-dropzone :where(ul, ol) { padding: 0; list-style: none; }
.ukc-input-dropzone :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-input-dropzone :where(a) { color: inherit; }
.ukc-input-dropzone svg { flex: none; }
.ukc-input-dropzone .dz { max-width: 440px; display: grid; gap: 10px; }
.ukc-input-dropzone .zone { display: grid; justify-items: center; gap: 6px; padding: 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--uk-radius-lg); background: var(--uk-surface); text-align: center; color: var(--uk-muted); }
.ukc-input-dropzone .zone strong { color: var(--uk-ink); }
.ukc-input-dropzone .zone a { color: var(--uk-accent); }
.ukc-input-dropzone .s { font-size: 13px; }
.ukc-input-dropzone ul { display: grid; gap: 6px; }
.ukc-input-dropzone li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); font-size: 14px; }
.ukc-input-dropzone .z { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); }
.ukc-input-dropzone li button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: var(--uk-radius-sm); background: transparent; color: var(--uk-muted); cursor: pointer; }
More inputs
All 27Weekdays only. For example, 28/10/2026
October 2026
Monday Tuesday Wednesday Thursday Friday Saturday Sunday To: Ridgeway job, 4 people