Glow
A gradient border with a halo of the same colours glowing behind it, still or turning.
Pro plan
Everything, unlimited
Customize
Installation
npx shadcn@latest add https://fancyborders.vercel.app/r/glow-frame.jsonThe CLI copies the component into your project, adds anything it is built on, and writes its CSS into your global stylesheet. New to the CLI? See Installation.
Examples
On a shape
Inside a shape frame the halo is the whole shape blurred behind it, so give the shape a fill.
Gradient and glow
Good to know
- GlowFrame is a preset: a Frame with a FrameGlow and a FrameGradient that share their colours. Both layers come from frame-effects.
- The halo is painted behind the frame's content but in front of the frame's own background.
API reference
GlowFrame
import { GlowFrame } from "@/components/glow-frame";| Prop | Type | Default |
|---|---|---|
| colors | string[]Colour stops shared by the border and the halo. | – |
| spin | boolean | numberTurn the colours around the frame. A number is the seconds one turn takes. | false |
| pulse | boolean | numberMake the halo breathe. A number is the seconds one breath in takes. | false |
| blur | number | stringBlur radius of the halo. | 10 |
| spread | number | stringWidth of the band that is blurred. Wider is brighter. | 14 |
Also accepts every Frame prop and every div attribute.
FrameGlow
import { FrameGlow } from "@/components/ui/frame-effects";| Prop | Type | Default |
|---|---|---|
| colors | string[]Colour stops, in order. Without them the layer reads the frame-from-*, frame-via-* and frame-to-* utilities. | – |
| gradient | stringAny CSS image, in place of the gradient built from the colours. | – |
| angle | number | stringDirection of the gradient. Numbers are degrees. | 135 |
| spin | boolean | numberTurn the gradient around the frame. A number is the seconds one turn takes; true is 4. | false |
| pulse | boolean | numberBreathe in and out. A number is the seconds one breath in takes; true is 2.4. | false |
| blur | number | stringBlur radius of the halo. | 10 |
| spread | number | stringWidth of the band that is blurred. Wider is brighter. | 14 |
| opacity | numberStrength of the halo, from 0 to 1. | 0.75 |
| offset | number | stringDistance from the frame's edge. Positive is outward, negative inward. | 0 |
| radius | number | stringOverrides the frame's radius for this layer. | – |
Also accepts every div attribute, such as className and style.