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

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

在线编辑每个组件,用控件微调,下载完整源码,复制进阶提示词。
一次性 $49占位价格
测试模式:不会真实扣款。
免费:预览、复制按钮和课程说明。
圆角输入框聚焦时画出一条蓝色下划线并向两端伸展,左边有搜索图标,右边有清空按钮。
导航栏、筛选和列表里的搜索。
设置 --width-of-input(200px)、--height-of-input、--border-color(#2f2ee9)、--border-height、--border-radius 和 --timing(0.3s)。
用纯 HTML、CSS 和 JavaScript(不用框架)做一个「下划线伸展搜索框」组件。圆角输入框聚焦时画出一条蓝色下划线并向两端伸展,左边有搜索图标,右边有清空按钮。 适用场景:导航栏、筛选和列表里的搜索。 开放这些可调项:设置 --width-of-input(200px)、--height-of-input、--border-color(#2f2ee9)、--border-height、--border-radius 和 --timing(0.3s)。 支持浅色和深色主题,遵守 prefers-reduced-motion 并给出静止画面,保证文字清晰、控件可用键盘操作。请写原创代码,不要从付费或受限的组件库复制。
更完整的提示词,包含调参、无障碍和接入步骤。