Striped Pattern (Dashed)

PreviousNext

Example showing a background striped pattern with a dashed stroke.

Docs
magicuiexample

Preview

Loading preview…
registry/example/striped-pattern-dashed.tsx
import { StripedPattern } from "@/registry/magicui/striped-pattern"

export default function Component() {
  return (
    <div className="relative flex h-[300px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border">
      <StripedPattern className="stroke-[0.3] [stroke-dasharray:8,4]" />
    </div>
  )
}

Installation

npx shadcn@latest add @magicui/striped-pattern-dashed

Usage

import { StripedPatternDashed } from "@/components/striped-pattern-dashed"
<StripedPatternDashed />