Rendyn

Component library

189 components

Interaction

Grid Pattern

Grid Pattern draws an SVG pattern with optional highlighted squares.

Interactive exampleReact Tailwind CSS

Practical React example

Give a section a subtle static grid without adding image downloads.

Before you copy and paste

Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/grid-pattern.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Give a section a subtle static grid without adding image downloads

// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';

import { GridPattern } from "@/components/magicui/grid-pattern"

export function ComponentExample() {
  return (
    <div className="relative h-[500px] w-full overflow-hidden">
  <GridPattern />
</div>
  );
}

Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.

Position the grid behind foreground content and tune width and height as cell dimensions, rather than assuming they size the section.

Customization

GridPatternProps.width
Optional; number.
GridPatternProps.height
Optional; number.
GridPatternProps.x
Optional; number.
GridPatternProps.y
Optional; number.
GridPatternProps.squares
Optional; Array<[x: number, y: number]>.
GridPatternProps.strokeDasharray
Optional; string.
GridPatternProps.className
Optional; string.

Integration notes

  • The containing section still needs its own dimensions and contrast treatment.
  • Decorative highlighted squares must not be the only representation of real data or status.

Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP