Striped pattern
A background of thin diagonal stripes.
Add it to your project
With the Magic UI commandTerminal
npx shadcn@latest add @magicui/striped-pattern
First time with Magic UI? Set it up once.
The code
import React, { useId } from "react"
import { cn } from "@/lib/utils"
interface StripedPatternProps extends React.SVGProps<SVGSVGElement> {
direction?: "left" | "right"
}
export function StripedPattern({
direction = "left",
className,
width = 10,This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.