复制一段给 AI 编程工具的提示词,包含源码、依赖和用法
属性
ParticlesBackgroundProps
同时支持以下类型的全部属性: React.ComponentProps<"div">
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| density | number | 1.1 | Particles per 10,000 px² of area |
| linkDistance | number | 120 | Max distance in px at which two dots are linked |
| speed | number | 1 | Drift speed multiplier |
| color | string | "currentColor" | Dot and line color, any CSS color. Defaults to the inherited text color |
| mouseRadius | number | 160 | Radius in px of the pointer's attract/link zone. 0 disables it |
安装
$ npx shadcn@latest add https://chromotion.dev/r/particles-background.json