For Tailwind CSS v3 docs, click here.

彩光边框

An animated border effect.

Installation

通过 CLI 安装

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://registry.inspira-ui.com/glow-border.json"

手动安装

复制并粘贴以下代码:

GlowBorder.vue

API

Prop 名称类型默认值描述
durationnumber10Duration of the glowing border animation.
colorstring | string[]#FFFColor or array of colors to applied on the glowing border.
borderRadiusnumber10Radius of the border.
borderWidthnumber2Width of the border.

感谢

  • Credits to Magic UI for this fantastic component.