安装
用法
import { RippleButton } from "@/components/magicui/ripple-button";
<RippleButton>Ripple Button</RippleButton>
属性
属性 | 类型 | 默认值 | 描述 |
---|---|---|---|
children | React.ReactNode | - | 按钮的内容。 |
className | string | - | 按钮的额外类名。 |
rippleColor | string | - | 仅用于涟漪波浪颜色的 RGB 值。 |
持续时间 | string | - | 单次涟漪的时间跨度。 |
鸣谢
- 鸣谢 @Sidd5arth