Dot Pattern

Fully Customisable Animated Background Component.

Loading...

Installation

npx shadcn@latest add https://thetaui.vercel.app/r/dot-pattern.json
pnpm dlx shadcn@latest add https://thetaui.vercel.app/r/dot-pattern.json
yarn shadcn@latest add https://thetaui.vercel.app/r/dot-pattern.json
bunx --bun shadcn@latest add https://thetaui.vercel.app/r/dot-pattern.json

Usage

import { DotPattern } from "@/components/ui/dot-pattern";
const DotPatternDemo = () => {
  return (
    <section className="relative flex h-full w-full items-center justify-center">
      <DotPattern glow/>
      <p className="text-primary -mt-10 text-5xl font-bold tracking-tight lg:text-8xl lg:tracking-tighter">
        Dotted Background
      </p>
    </section>
  );
};
export default DotPatternDemo;

On this page