文字
安装
用法
import { WordRotate } from "@/components/magicui/word-rotate";
<WordRotate words={["Word", "Rotate"]} />
属性
属性 | 类型 | 默认值 | 描述 |
---|---|---|---|
className | string | - | 要应用于组件的类名 |
持续时间 | number | 2500 | 动画持续时间 |
words | string[] | "" | 用于循环切换的词语数组 |
motionProps | HTMLMotionProps | {} | 包含运动动画属性的对象 |