Atelier UI

搜索组件…

搜索组件…

Meteors

确定性分布的斜向流星雨背景。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

MeteorsProps

同时支持以下类型的全部属性: React.ComponentProps<"div">

属性类型默认值说明
countnumber20Number of streaks
colorstring"currentColor"Streak color, any CSS color. Defaults to the inherited text color
minDurationnumber3Shortest fall time in seconds
maxDurationnumber8Longest fall time in seconds
seednumber0Seed to get a different but still deterministic arrangement

安装

$ npx shadcn@latest add https://chromotion.dev/r/meteors.json

同类组件