Components (13)
Border Glow
NewInteractive surface with cursor-tracking mesh gradient edge illumination, outer atmospheric aura, and entry sweep animation.
$ pnpm dlx shadcn@latest add @byphongphan/border-glowRequires
@byphongphan in components.jsonborder-glow.tsx
Loading preview...
Installation
$ pnpm dlx shadcn@latest add @byphongphan/border-glowRequires
@byphongphan in components.jsonUsage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
edgeSensitivity | number | 30 | Distance threshold in percentage before the edge glow triggers. |
glowColor | string | "40 80 80" | HSL string h s l representing outer halo color. |
borderRadius | number | string | 20 | Border radius in pixels or CSS unit. |
glowRadius | number | 36 | Radius of the external blurred atmospheric glow. |
glowIntensity | number | 1.0 | Multiplier for the multi-layered box shadow intensity. |
coneSpread | number | 25 | Angle spread percentage for the conic gradient beam. |
animated | boolean | false | Triggers a sweeping intro animation on initial mount. |
colors | string[] | ["#c084fc", "#f472b6", "#38bdf8"] | Array of colors forming the multi-stop mesh gradient. |
fillOpacity | number | 0.5 | Opacity of the inner mesh wash near the borders. |
contentClassName | string | undefined | Custom classes for the inner content container. |