Rendyn

Component library

189 components

Interaction

Retro Grid

Retro Grid draws an animated perspective surface with configurable angle and line colors.

Interactive exampleReact Tailwind CSS

Practical React example

Give a hero illustration a perspective grid while keeping product content in a separate layer.

Before you copy and paste

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

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

Give a hero illustration a perspective grid while keeping product content in a separate layer

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

import { RetroGrid } from "@/components/magicui/retro-grid"

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

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

Set the parent’s height and overflow explicitly, then tune angle and cellSize. Include the returned CSS even if a different upstream version describes setup differently.

Customization

RetroGridProps.className
Optional; string. Additional CSS classes to apply to the grid container
RetroGridProps.angle
Optional; number. Rotation angle of the grid in degrees
RetroGridProps.cellSize
Optional; number. Grid cell size in pixels
RetroGridProps.opacity
Optional; number. Grid opacity value between 0 and 1
RetroGridProps.lightLineColor
Optional; string. Grid line color in light mode
RetroGridProps.darkLineColor
Optional; string. Grid line color in dark mode

Integration notes

  • Check the chosen light and dark line colors against the actual section background.
  • Provide a static reduced-motion treatment and avoid placing essential small text in the moving grid.

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