Glow Border

An animated border effect.

Preview
Code

Install using CLI

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

Install Manually

Copy and paste the following code

GlowBorder.vue

API

Prop NameTypeDefaultDescription
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

  • Credits to Magic UI for this fantastic component.