Rendyn

Component library

189 components

Interaction

Interactive Grid Pattern

Interactive Grid Pattern exposes cell sizing and a finite square grid.

Interactive exampleReact Tailwind CSS

Practical React example

Make a small decorative grid respond to pointer movement in a product showcase.

Before you copy and paste

Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/interactive-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.

Make a small decorative grid respond to pointer movement in a product showcase

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

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

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

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

Keep its square count bounded and place important text outside or above the interactive cells.

Customization

InteractiveGridPatternProps.width
Optional; number.
InteractiveGridPatternProps.height
Optional; number.
InteractiveGridPatternProps.squares
Optional; [number, number].
InteractiveGridPatternProps.className
Optional; string.
InteractiveGridPatternProps.squaresClassName
Optional; string.

Integration notes

  • Hover interaction should not be required to reveal content or navigate.
  • Test coarse pointers and ensure the grid does not capture events intended for foreground controls.

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