Performance
PassFrame rate: 60 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.8 KB · Runtime 1.9 KB
plastic-bobcat-37MITInputUiverse.io
A input built with plain HTML and CSS by satyamchaudharydev. 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.8 KB · Runtime 1.9 KB
Issues 1 · 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.

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.
<form class="form">
<button>
<svg width="17" height="16" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="search">
<path d="M7.667 12.667A5.333 5.333 0 107.667 2a5.333 5.333 0 000 10.667zM14.334 14l-2.9-2.9" stroke="currentColor" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</button>
<input class="input" placeholder="Type your text" required="" type="text">
<button class="reset" type="reset">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
</form>/* From Uiverse.io by satyamchaudharydev - Tags: input */
/* From uiverse.io by @satyamchaudharydev */
/* removing default style of button */
.form button {
border: none;
background: none;
color: #8b8ba7;
}
/* styling of whole input container */
.form {
--timing: 0.3s;
--width-of-input: 200px;
--height-of-input: 40px;
--border-height: 2px;
--input-bg: #fff;
--border-color: #2f2ee9;
--border-radius: 30px;
--after-border-radius: 1px;
position: relative;
width: var(--width-of-input);
height: var(--height-of-input);
display: flex;
align-items: center;
padding-inline: 0.8em;
border-radius: var(--border-radius);
transition: border-radius 0.5s ease;
background: var(--input-bg,#fff);
}
/* styling of Input */
.input {
font-size: 0.9rem;
background-color: transparent;
width: 100%;
height: 100%;
padding-inline: 0.5em;
padding-block: 0.7em;
border: none;
}
/* styling of animated border */
.form:before {
content: "";
position: absolute;
background: var(--border-color);
transform: scaleX(0);
transform-origin: center;
width: 100%;
height: var(--border-height);
left: 0;
bottom: 0;
border-radius: 1px;
transition: transform var(--timing) ease;
}
/* Hover on Input */
.form:focus-within {
border-radius: var(--after-border-radius);
}
input:focus {
outline: none;
}
/* here is code of animated border */
.form:focus-within:before {
transform: scale(1);
}
/* styling of close button */
/* == you can click the close button to remove text == */
.reset {
border: none;
background: none;
opacity: 0;
visibility: hidden;
}
/* close button shown when typing */
input:not(:placeholder-shown) ~ .reset {
opacity: 1;
visibility: visible;
}
/* sizing svg icons */
.form svg {
width: 17px;
margin-top: 3px;
}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 rounded field draws a blue underline that grows across on focus, with a search icon on the left and a clear button on the right.
Search in navigation bars, filters and lists.
Set --width-of-input (200px), --height-of-input, --border-color (#2f2ee9), --border-height, --border-radius and --timing (0.3s).
Build a "Underline grow search field" component in plain HTML, CSS and JavaScript (no framework). A rounded field draws a blue underline that grows across on focus, with a search icon on the left and a clear button on the right. Use it for: Search in navigation bars, filters and lists. Expose these controls: Set --width-of-input (200px), --height-of-input, --border-color (#2f2ee9), --border-height, --border-radius and --timing (0.3s). 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.