ValyroUI Русская версия

Hexagon Background

Hexagon grid with a glowing trail. Pro · Effects › Backgrounds

A honeycomb of hexagons behind content: a cell lights up under the pointer and fades out slowly, leaving a trail. Pure CSS once laid out — no frame loop; the grid is re-laid only when the area resizes, and the cell count is capped (larger cells on very large areas).

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add hexagon-background
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { HexagonBackground } from 'valyro-ui-pro';

Props

PropTypeDefault
hexagonSizenumber75Width of one hexagon, px (default 75); a very large area gets larger cells so the grid stays light.
hexagonMarginnumber3Gap between hexagons, px (default 3).
hexagonPropsComponentPropsWithoutRef<'span'>Props for every hexagon cell (a class to restyle them, data attributes).

Related components

Previous: Stars Background · Next: Hole Background · All Effects