Performance
PassFrame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.8 KB · Runtime 2.6 KB
rotten-bullfrog-77MITInputUiverse.io
A input built with plain HTML and CSS by Li-Deheng. 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.8 KB · Runtime 2.6 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="search">
<div class="search-box">
<div class="search-field">
<input placeholder="Search..." class="input" type="text">
<div class="search-box-icon">
<button class="btn-icon-content">
<i class="search-icon">
<svg xmlns="://www.w3.org/2000/svg" version="1.1" viewBox="0 0 512 512"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z" fill="#fff"></path></svg>
</i>
</button>
</div>
</div>
</div>
</div>/* From Uiverse.io by Li-Deheng - Tags: input, search */
.search {
--input-line: #cccccc;
--input-text-color: #808080;
--input-text-hover-color: transparent;
--input-border-color: #808080;
--input-border-hover-color: #999999;
--input-bg-color: #333333;
--search-max-width: 250px;
--search-min-width: 150px;
--border-radius: 5px;
--transition-cubic-bezier: 150ms cubic-bezier(0.4,0,0.2,1);
}
.search-box {
max-width: var(--search-max-width);
min-width: var(--search-min-width);
height: 35px;
border: 1px solid var(--input-border-color);
border-radius: var(--border-radius);
padding: 5px 15px;
background: var(--input-bg-color);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
transition: var(--transition-cubic-bezier);
}
.search-box:hover {
border-color: var(--input-border-hover-color);
}
/*Section input*/
.search-field {
position: relative;
width: 100%;
height: 100%;
left: -5px;
border: 0;
}
.input {
width: calc(100% - 29px);
height: 100%;
border: 0;
border-color: transparent;
font-size: 1rem;
padding-right: 0px;
color: var(--input-line);
background: var(--input-bg-color);
border-right: 2px solid var(--input-border-color);
outline: none;
}
.input::-webkit-input-placeholder {
color: var(--input-text-color);
}
.input::-moz-input-placeholder {
color: var(--input-text-color);
}
.input::-ms-input-placeholder {
color: var(--input-text-color);
}
.input:focus::-webkit-input-placeholder {
color: var(--input-text-hover-color);
}
.input:focus::-moz-input-placeholder {
color: var(--input-text-hover-color);
}
.input:focus::-ms-input-placeholder {
color: var(--input-text-hover-color);
}
/*Search button*/
.search-box-icon {
width: 52px;
height: 35px;
position: absolute;
top: -6px;
right: -21px;
background: transparent;
border-bottom-right-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
transition: var(--transition-cubic-bezier);
}
.search-box-icon:hover {
background: var(--input-border-color);
}
.btn-icon-content {
width: 52px;
height: 35px;
top: -6px;
right: -21px;
background: transparent;
border: none;
cursor: pointer;
border-bottom-right-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
transition: var(--transition-cubic-bezier);
opacity: .4;
}
.btn-icon-content:hover {
opacity: .8;
}
.search-icon {
width: 21px;
height: 21px;
position: absolute;
top: 7px;
right: 15px;
}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 dark field with a thin line under it and an icon button stretches between min and max widths, tidy and themeable.
Dark sites, admin headers and docs search.
Set --input-line, --input-bg-color (#333333), --search-max-width (250px), --search-min-width, --border-radius and --transition-cubic-bezier.
Build a "Dark line search box" component in plain HTML, CSS and JavaScript (no framework). A dark field with a thin line under it and an icon button stretches between min and max widths, tidy and themeable. Use it for: Dark sites, admin headers and docs search. Expose these controls: Set --input-line, --input-bg-color (#333333), --search-max-width (250px), --search-min-width, --border-radius and --transition-cubic-bezier. 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.