Components

Hexagons

Flat-top hexagon grid with customizable fill, border colors, hover highlight, ambient glow, and animated beam lines flowing along hex edges.

npx neonblade add hexagons

HEX GRID

Hover a cell. Watch the beams flow along the edges.

Props Configuration

PropTypeDefaultDescription
hexColorstring"transparent"Fill color of each hexagon cell.
hexBorderColorstring"rgba(0,243,255,0.25)"Stroke color for hexagon borders.
hexSizenumber40Circumradius of each hexagon in pixels.
borderWidthnumber1Stroke width of hexagon borders in pixels.
hoverEffectbooleantrueEnable hover effects. Controls both fill and border hover reactivity.
hoverColorstring"rgba(0,243,255,0.15)"Fill color applied to the hovered hexagon. Set same as hexColor to disable fill change.
hoverBorderColorstring"#00f3ff"Border stroke color on the hovered hexagon. Set to "" to keep border unchanged on hover.
borderGlowEffectbooleanfalseEnable a neon shadow glow rendered around every hex border. Color can differ from hexBorderColor.
borderGlowColorstring"#00f3ff"Shadow/glow color for hex borders. Independent of the border stroke color.
borderGlowRadiusnumber10Blur radius (px) of the neon border glow.
beamEffectbooleanfalseEnable animated beams that travel along hex edges from top to bottom.
beamColorstring"#00f3ff"Color of the beam gradient body.
beamGlowColorstring"#00f3ff"Shadow glow color of the bright beam head.
maxBeamsnumber20Maximum number of concurrent beams on screen.
beamSpeednumber2Base travel speed of beams in px per frame.
beamLengthnumber80Tail length of each beam in pixels.
beamSpawnProbabilitynumber0.08Probability per frame of spawning a new beam (0–1).
overlaybooleanfalseAdd a radial-gradient dark vignette overlay on top of the grid.
classNamestring""Additional CSS class names for the root container.