Performance
PassFrame rate: 60 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.9 KB · Runtime 1.2 KB
tidy-warthog-91MITInputUiverse.io
A input built with plain HTML and CSS by Yaya12085. 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.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.9 KB · Runtime 1.2 KB
Issues 0 · Screen reader: Needs attention
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="input-container">
<input placeholder="Search something..." class="input" name="text" type="text">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="icon"><g stroke-width="0" id="SVGRepo_bgCarrier"></g><g stroke-linejoin="round" stroke-linecap="round" id="SVGRepo_tracerCarrier"></g><g id="SVGRepo_iconCarrier"> <rect fill="white"></rect> <path d="M7.25007 2.38782C8.54878 2.0992 10.1243 2 12 2C13.8757 2 15.4512 2.0992 16.7499 2.38782C18.06 2.67897 19.1488 3.176 19.9864 4.01358C20.824 4.85116 21.321 5.94002 21.6122 7.25007C21.9008 8.54878 22 10.1243 22 12C22 13.8757 21.9008 15.4512 21.6122 16.7499C21.321 18.06 20.824 19.1488 19.9864 19.9864C19.1488 20.824 18.06 21.321 16.7499 21.6122C15.4512 21.9008 13.8757 22 12 22C10.1243 22 8.54878 21.9008 7.25007 21.6122C5.94002 21.321 4.85116 20.824 4.01358 19.9864C3.176 19.1488 2.67897 18.06 2.38782 16.7499C2.0992 15.4512 2 13.8757 2 12C2 10.1243 2.0992 8.54878 2.38782 7.25007C2.67897 5.94002 3.176 4.85116 4.01358 4.01358C4.85116 3.176 5.94002 2.67897 7.25007 2.38782ZM9 11.5C9 10.1193 10.1193 9 11.5 9C12.8807 9 14 10.1193 14 11.5C14 12.8807 12.8807 14 11.5 14C10.1193 14 9 12.8807 9 11.5ZM11.5 7C9.01472 7 7 9.01472 7 11.5C7 13.9853 9.01472 16 11.5 16C12.3805 16 13.202 15.7471 13.8957 15.31L15.2929 16.7071C15.6834 17.0976 16.3166 17.0976 16.7071 16.7071C17.0976 16.3166 17.0976 15.6834 16.7071 15.2929L15.31 13.8957C15.7471 13.202 16 12.3805 16 11.5C16 9.01472 13.9853 7 11.5 7Z" clip-rule="evenodd" fill-rule="evenodd"></path> </g></svg>
</div>/* From Uiverse.io by Yaya12085 - Tags: input, search */
.input-container {
position: relative;
display: flex;
align-items: center;
}
.input {
width: 40px;
height: 40px;
border-radius: 10px;
border: none;
outline: none;
padding: 18px 16px;
background-color: transparent;
cursor: pointer;
transition: all .5s ease-in-out;
}
.input::placeholder {
color: transparent;
}
.input:focus::placeholder {
color: rgb(131, 128, 128);
}
.input:focus,.input:not(:placeholder-shown) {
background-color: #fff;
border: 1px solid rgb(98, 0, 255);
width: 290px;
cursor: none;
padding: 18px 16px 18px 40px;
}
.icon {
position: absolute;
left: 0;
top: 0;
height: 40px;
width: 40px;
background-color: #fff;
border-radius: 10px;
z-index: -1;
fill: rgb(98, 0, 255);
border: 1px solid rgb(98, 0, 255);
}
.input:hover + .icon {
transform: rotate(360deg);
transition: .2s ease-in-out;
}
.input:focus + .icon,.input:not(:placeholder-shown) + .icon {
z-index: 0;
background-color: transparent;
border: none;
}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.
Only a 40px search icon shows until clicked, then a white field with a purple border grows to 290px in 0.5s.
Headers and toolbars where search must stay out of the way.
Change the 40px and 290px widths, the rgb(98,0,255) border, the 10px radius and the 0.5s ease-in-out.
Build a "Icon to search field expand" component in plain HTML, CSS and JavaScript (no framework). Only a 40px search icon shows until clicked, then a white field with a purple border grows to 290px in 0.5s. Use it for: Headers and toolbars where search must stay out of the way. Expose these controls: Change the 40px and 290px widths, the rgb(98,0,255) border, the 10px radius and the 0.5s ease-in-out. 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.