Retro Grid

A description for Retro Grid component.

Retro Grid

Installation

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

Usage

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

Props

Retro Grid

A component for Retro Grid.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
anglenumber65Rotation angle of the grid in degrees
cellSizenumber60Size of each grid cell in pixels
opacitynumber0.5Opacity of the grid lines (0 to 1)
lightLineColorstring"gray"Color of the light grid lines
darkLineColorstring"gray"Color of the dark grid lines