性能
通过帧率: 平均 60 fps,p5 59.9 · 长任务: 0 个,共 0 毫秒,最长 0 毫秒 · 源码 gzip 1.6 KB · 运行时 1.1 KB
tidy-pig-67MIT输入框Uiverse.io
LightAndy1 用纯 HTML 和 CSS 做的输入框。按 MIT 许可从 Uiverse.io 收录,此处为实时预览。
质量报告
等级和分数来自构建或测试时跑过的自动检查。没跑过的项目会标成「未检测」,不会填假数据。
帧率: 平均 60 fps,p5 59.9 · 长任务: 0 个,共 0 毫秒,最长 0 毫秒 · 源码 gzip 1.6 KB · 运行时 1.1 KB
问题 0 · 读屏: 通过
没有持续动效
无溢出
帧率和长任务是在无界面的 Chromium 里用软件 WebGL 测的,只适合在本站组件之间比较,不代表真机表现。
不适用:静止时没有可见动画;由悬停触发的动画没有测试。
没有 axe-core 违规。

检测于 2026年11月15日 · 数据来自自动脚本,不是手工填写。
按实际尺寸显示。
复制内容以许可声明开头,使用代码时请保留。
<div class="group">
<svg viewBox="0 0 24 24" aria-hidden="true" class="search-icon">
<g>
<path
d="M21.53 20.47l-3.66-3.66C19.195 15.24 20 13.214 20 11c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9c2.215 0 4.24-.804 5.808-2.13l3.66 3.66c.147.146.34.22.53.22s.385-.073.53-.22c.295-.293.295-.767.002-1.06zM3.5 11c0-4.135 3.365-7.5 7.5-7.5s7.5 3.365 7.5 7.5-3.365 7.5-7.5 7.5-7.5-3.365-7.5-7.5z"
></path>
</g>
</svg>
<input
id="query"
class="input"
type="search"
placeholder="Search..."
name="searchbar"
/>
</div>/* From Uiverse.io by LightAndy1 - Tags: simple, icon, input, dark, search */
.group {
display: flex;
line-height: 28px;
align-items: center;
position: relative;
max-width: 190px;
}
.input {
font-family: "Montserrat", sans-serif;
width: 100%;
height: 45px;
padding-left: 2.5rem;
box-shadow: 0 0 0 1.5px #2b2c37, 0 0 25px -17px #000;
border: 0;
border-radius: 12px;
background-color: #16171d;
outline: none;
color: #bdbecb;
transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
cursor: text;
z-index: 0;
}
.input::placeholder {
color: #bdbecb;
}
.input:hover {
box-shadow: 0 0 0 2.5px #2f303d, 0px 0px 25px -15px #000;
}
.input:active {
transform: scale(0.95);
}
.input:focus {
box-shadow: 0 0 0 2.5px #2f303d;
}
.search-icon {
position: absolute;
left: 1rem;
fill: #bdbecb;
width: 1rem;
height: 1rem;
pointer-events: none;
z-index: 1;
}控件 · HTML · CSS · JS
直接改代码,再用控件微调,预览会随输入实时更新。

在线编辑每个组件,用控件微调,下载完整源码,复制进阶提示词。
一次性 $49占位价格
测试模式:不会真实扣款。
免费:预览、复制按钮和课程说明。
近黑的圆角输入框带一圈细灰边,悬停和聚焦时变粗,安静又有质感。
深色仪表盘、开发者工具和命令栏。
改 #16171d 填充、#2b2c37 描边及其 1.5px 到 2.5px 的宽度、12px 圆角和 cubic-bezier(0.19,1,0.22,1)。
用纯 HTML、CSS 和 JavaScript(不用框架)做一个「深色描边搜索框」组件。近黑的圆角输入框带一圈细灰边,悬停和聚焦时变粗,安静又有质感。 适用场景:深色仪表盘、开发者工具和命令栏。 开放这些可调项:改 #16171d 填充、#2b2c37 描边及其 1.5px 到 2.5px 的宽度、12px 圆角和 cubic-bezier(0.19,1,0.22,1)。 支持浅色和深色主题,遵守 prefers-reduced-motion 并给出静止画面,保证文字清晰、控件可用键盘操作。请写原创代码,不要从付费或受限的组件库复制。
更完整的提示词,包含调参、无障碍和接入步骤。