Striped Pattern

A background striped pattern made with SVGs, fully customizable using Tailwind CSS.

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/striped-pattern.json

Usage

<script lang="ts">	import { StripedPattern } from "#lib/components/magic/striped-pattern/index.js";</script>
<div class="relative h-64 overflow-hidden">	<StripedPattern /></div>

Props

A component for .

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
direction"left" | "right""left"Direction of the stripes
widthnumber10Width of the pattern
heightnumber10Height of the pattern