Striped Pattern
Striped Pattern renders an SVG line pattern with a chosen direction.
Practical React example
Add a light diagonal texture to an empty or supporting surface.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/striped-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.
Add a light diagonal texture to an empty or supporting surface
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { StripedPattern } from "@/components/magicui/striped-pattern"
export function ComponentExample() {
return (
<div className="relative h-[500px] w-full overflow-hidden">
<StripedPattern />
</div>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Use the texture as decoration and keep foreground controls on a solid-enough surface. Match its cell sizing to the intended visual density.
Customization
- StripedPatternProps.direction
- Optional; "left" | "right".
Integration notes
- Do not use stripes alone to signal errors or restricted content.
- Check contrast at high zoom and with high-contrast display settings.
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.