复制一段给 AI 编程工具的提示词,包含源码、依赖和用法
属性
TiltCardProps
同时支持以下类型的全部属性: React.ComponentProps<"div">
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| maxTilt | number | 12 | Maximum rotation in degrees |
| perspective | number | 900 | CSS perspective distance in px |
| scale | number | 1.03 | Scale while the pointer is over the card |
| glare | boolean | true | Show a glare highlight that follows the pointer |
| glareOpacity | number | 0.35 | Peak opacity of the glare, 0 to 1 |
安装
$ npx shadcn@latest add https://chromotion.dev/r/tilt-card.json