Warp Background
Warp Background positions decorative beams behind its children.
Practical React example
Add a restrained moving backdrop to a short announcement card.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/warp-background.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: motion.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Add a restrained moving backdrop to a short announcement card
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { WarpBackground } from "@/components/magicui/warp-background"
export function ComponentExample() {
return (
<WarpBackground>
<div className="w-80">
<p>Warp Background</p>
<p>This is a component that creates a warp background effect.</p>
</div>
</WarpBackground>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Give the container a bounded size and keep foreground content above the effect. Reduce beam count before using it in several visible panels.
Customization
- WarpBackgroundProps.children
- Required; React.ReactNode.
- WarpBackgroundProps.perspective
- Optional; number.
- WarpBackgroundProps.beamsPerSide
- Optional; number.
- WarpBackgroundProps.beamSize
- Optional; number.
- WarpBackgroundProps.beamDelayMax
- Optional; number.
- WarpBackgroundProps.beamDelayMin
- Optional; number.
- WarpBackgroundProps.beamDuration
- Optional; number.
- WarpBackgroundProps.gridColor
- Optional; string.
Integration notes
- Check text contrast throughout the animation rather than at one captured frame.
- Offer a static presentation for reduced motion and avoid making the effect a prerequisite for reading content.
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.
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.