Interactive Grid Pattern

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

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/interactive-grid-pattern.json"

Install Manually

Copy and paste the following code

InteractiveGridPattern.vue

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.

Credits