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

检测于 2026年11月15日 · 数据来自自动脚本,不是手工填写。
按实际尺寸显示。
复制内容以许可声明开头,使用代码时请保留。
<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;
}控件 · HTML · CSS · JS
直接改代码,再用控件微调,预览会随输入实时更新。

在线编辑每个组件,用控件微调,下载完整源码,复制进阶提示词。
一次性 $49占位价格
测试模式:不会真实扣款。
免费:预览、复制按钮和课程说明。
平时只显示一个 40px 的搜索图标,点击后 0.5 秒展开成 290px 宽、带紫色边框的白色输入框。
搜索要尽量不占地方的页头和工具栏。
改 40px 和 290px 两个宽度、rgb(98,0,255) 边框、10px 圆角和 0.5s ease-in-out。
用纯 HTML、CSS 和 JavaScript(不用框架)做一个「图标展开搜索框」组件。平时只显示一个 40px 的搜索图标,点击后 0.5 秒展开成 290px 宽、带紫色边框的白色输入框。 适用场景:搜索要尽量不占地方的页头和工具栏。 开放这些可调项:改 40px 和 290px 两个宽度、rgb(98,0,255) 边框、10px 圆角和 0.5s ease-in-out。 支持浅色和深色主题,遵守 prefers-reduced-motion 并给出静止画面,保证文字清晰、控件可用键盘操作。请写原创代码,不要从付费或受限的组件库复制。
更完整的提示词,包含调参、无障碍和接入步骤。