Performance
PassFrame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.3 KB · Runtime 914 B
purple-zebra-43MITFormUiverse.io
A form built with plain HTML and CSS by Cksunandh. Collected from Uiverse.io under the MIT licence and shown here live.
Quality report
The grade and score come from automated checks run at build or test time. If a check did not run, it is marked Not tested — numbers are never invented.
Frame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.3 KB · Runtime 914 B
Issues 0 · Screen reader: Pass
No continuous motion
No overflow
Frame rate and long-task figures were measured in headless Chromium with software WebGL. They are only comparable between components on this site, and do not represent real devices.
Not applicable: no visible animation at rest. Hover-triggered animation was not tested.
No axe-core violations.

Checked Nov 15, 2026 · Figures come from an automated script, not from hand-written samples.
Shown at real size.
The copy starts with the licence notice. Keep it when you use the code.
<div class="file-upload-container">
<div class="file-upload">
<input multiple="" class="file-input" id="fileInput" type="file" />
<label class="file-label" for="fileInput">
<i class="upload-icon">📁</i>
<p>Drag & Drop your files here or click to upload</p>
</label>
</div>
</div>/* From Uiverse.io by Cksunandh - Tags: form */
.file-upload-container {
width: 50%;
max-width: 500px;
}
.file-upload {
position: relative;
border: 2px dashed #b8bcbf;
border-radius: 10px;
padding: 40px;
text-align: center;
background-color: rgb(255, 255, 255);
transition: background-color 0.3s ease-in-out;
}
.file-upload:hover {
background-color: #e2e6ea;
}
.file-input {
display: none;
}
.file-label {
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
}
.upload-icon {
font-size: 50px;
color: #007bff;
margin-bottom: 10px;
}
.file-upload p {
margin: 0;
font-size: 16px;
color: #6c757d;
}
.file-upload.dragover {
background-color: #007bff;
color: white;
}Controls · HTML · CSS · JS
Edit the code and tune it with the controls. The preview updates as you type.

This component runs from a bundled build, so its script is read-only here. Edit the HTML and CSS; the full source is in the Code tab.
Edit every component live, tune it with controls, download the full source and copy the advanced prompts.
$49 one-timePlaceholder price
Test mode: no real payment is taken.
Free: preview, copy buttons and the lesson notes.
A dashed rounded box with a folder icon says drag and drop or click, and turns light grey on hover, the shape everyone recognises for uploads.
File uploads in forms, admin tools and sharing apps.
Change the 2px dashed #b8bcbf border, the 10px radius, the 40px padding and the #e2e6ea hover colour.
Build a "Dashed drag and drop upload" component in plain HTML, CSS and JavaScript (no framework). A dashed rounded box with a folder icon says drag and drop or click, and turns light grey on hover, the shape everyone recognises for uploads. Use it for: File uploads in forms, admin tools and sharing apps. Expose these controls: Change the 2px dashed #b8bcbf border, the 10px radius, the 40px padding and the #e2e6ea hover colour. Support light and dark themes, respect prefers-reduced-motion with a still frame, keep text readable and controls keyboard accessible. Write original code; do not copy from paid or restricted component libraries.
A longer prompt with tuning, accessibility and integration steps.