彩光边框
An animated border effect.
This component uses the nuxt-only
syntax with the <ClientOnly>
. If you are not using Nuxt, you can simply remove it.
Installation
Add following entry to inline theme in your main.css
file.
通过 CLI 安装
手动安装
复制并粘贴以下代码:
GlowBorder.vue
API
Prop 名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
duration | number | 10 | Duration of the glowing border animation. |
color | string | string[] | #FFF | Color or array of colors to applied on the glowing border. |
borderRadius | number | 10 | Radius of the border. |
borderWidth | number | 2 | Width of the border. |
感谢
- Credits to Magic UI for this fantastic component.