Skip to content
PixiKit

Edge Glow

A card whose border lights up with a colored mesh gradient and an outer glow in the direction of the pointer as it nears the edge.

pixikit.com/docs/components/edge-glow

Customize

Edge sensitivity30
Background color
Border radius28px
Glow radius40px
Glow intensity1.0
Cone spread25
Animated
Colors3 of 10

Props

11
NameTypeDefaultDescription
childrenReactNodeNoneContent rendered inside the card.
classNamestring""Additional CSS classes for the outer wrapper.
edgeSensitivitynumber30How close the pointer must be to the edge for the glow to appear (0-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.
glowIntensitynumber1Multiplier for glow opacity (0.1-3.0).
coneSpreadnumber25Width of the directional cone mask as a percentage (5-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.

More interaction components in Pro

View all

Related