Pricing

Grid Pattern

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

6,039

Bookmarks

4,239

Installs

26,839

Views

31 lines
"use client"

import { cn } from "@/lib/utils"
import { GridPattern } from "@/components/ui/grid-pattern"

export default function GridPatternDemo() {
  return (
    <div className="bg-background relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border">
      <GridPattern
        squares={[

21 more lines behind a plan

Previews are free to watch. Reading and copying the full source needs a plan.

See plans
Dependencies
None — plain React + Tailwind
License
MIT License
Published
1/11/2025
Categories

Similar components

That's all 6 components

Explore more

Part of Magic UI — browse the full library on Nuxus.