Toggle Sidebar B
AppearanceLight & dark mode D

Border Glow

Glowing mesh-gradient border that follows cursor direction and intensifies near edges.

Default

Bring the pointer close to the card border and the glow follows its direction. Every prop is wired to the controls underneath.

Light previewReplay previewOpen in new tab

Hover Near the Edges

Move your cursor close to the card border to see the colored glow effect follow your pointer direction.

Customize

Edge Sensitivity30
Border Radius28
Glow Radius40
Glow Intensity1
Cone Spread25
Background
Color 1
Color 2
Color 3

API Reference

BorderGlow

PropTypeDefaultDescription
edgeSensitivitynumber30How close the pointer must be to the edge for the glow to appear (0 to 100).
glowColorstring"40 80 80"HSL values for the glow color, as "H S L" (e.g. "40 80 80").
backgroundColorstring"#120F17"Background color of the card.
borderRadiusnumber28Corner radius of the card in pixels.
glowRadiusnumber40How far the outer glow extends beyond the card in pixels.
glowIntensitynumber1.0Multiplier for glow opacity (0.1 to 3.0).
coneSpreadnumber25Width of the directional cone mask as a percentage (5 to 45).
animatedbooleanfalsePlay an intro sweep animation on mount.
colorsstring[]["#c084fc", "#f472b6", "#38bdf8"]Array of 3 hex colors for the mesh gradient border, distributed across positions.
fillOpacitynumber0.5Opacity of the colored fill that appears inside the card near the edges.

BorderGlow slots

PropTypeDefaultDescription
defaultslot-Content rendered inside the card.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The glow is decorative and follows the pointer only. The card content stays plain markup.