文档菜单

图像生成

用于图像生成的闪烁点阵画布,无可见状态文字。

安装

pnpm dlx shadcn@latest add https://loading.design/r/image-generation.json

用法

import { ImageGeneration } from "@/components/loading/image-generation"
<ImageGeneration size={14} speed={1.8} active={true} />

API

属性类型默认值说明
sizenumber14点阵画布的缩放大小,单位为像素。
speednumber1.8点阵闪烁时长,单位为秒。
activebooleantrue是否启用点阵动画。
labelstringGenerating image…无障碍状态标签。装饰用途请传入空字符串。

无障碍

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