文档菜单

搜索扫描

放大镜中的光束来回扫描,适用于搜索和检索状态。

安装

pnpm dlx shadcn@latest add https://loading.design/r/search-sweep.json

用法

import { SearchSweep } from "@/components/loading/search-sweep"
<SearchSweep size={36} speed={1.8} />

API

属性类型默认值说明
sizenumber36渲染的宽度与高度,单位为像素。
speednumber1.8一次动画循环的时长,单位为秒。
labelstringThinking无障碍状态标签。装饰用途请传入空字符串。

无障碍

组件通过标签提供礼貌的状态提示。仅在附近的文字已说明加载状态,或动画仅用于装饰时,才使用空标签。