Interactive Grid Pattern

A interactive background grid pattern made with SVGs, fully customizable.

Examples

API

Props

Prop NameTypeDefaultDescription
classNamestring-Additional classes for styling the component.
squaresClassNamestring-Additional classes for styling the squares.
widthnumber40Width of the square in pixels.
heightnumber40Height of the square in pixels.
squares[number, number][24, 24]Number of squares in the grid pattern.

Component Code

You can copy and paste the following code to create this component:

Credits