Backgrounds & motion / CSS
Dot grid
An understated canvas for your next big idea.
Preparing the component workbench…
Backgrounds & motion / CSS
An understated canvas for your next big idea.
SOURCE / REACT · provisional
import DotGrid from "@/components/buildwithme/dot-grid/react";
<DotGrid />// MIT · BuildWithMe-UI contributors. Original implementation.
'use client';
import { useAnimation, type AnimationProps } from './use-animation';
import './base.css';
import './dot-grid.css';
export default function DotGrid({ paused = false }: AnimationProps) {
const { ref, active } = useAnimation(paused);
return (
<div ref={ref} className="bw-demo bw-dots" data-active={active}>
<span className="bw-grid-label">Room for your next idea.</span>
</div>
);
}
Install the registry item to receive all 7 files and their declared dependencies. Copying one file may require the other files shown here.