X-ray grid
Press X (or the button) to see the 12-column grid and how the page is built.
UniversalUsed in production
Install
npx finepieces add x-ray-gridOr with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/x-ray-grid.jsonPress X
example.tsx
import { XRayGrid } from "@/components/fine-pieces/x-ray-grid";
export default function Example() {
return (
<XRayGrid>
<h3 className="col-span-12 text-[clamp(40px,5vw,80px)] font-bold leading-[.95] tracking-[-.05em] sm:col-span-7">Kofi & Co</h3>
<p className="col-span-12 text-muted-foreground sm:col-span-5 sm:col-start-1">Coffee that makes your day a little better.</p>
<img src={"/images/cafe-2.webp"} alt="" className="col-span-12 h-[220px] w-full rounded-[8px] object-cover sm:col-span-7 sm:col-start-1 sm:h-[260px]" />
<img src={"/images/cafe-3.webp"} alt="" className="hidden h-[260px] w-full rounded-[8px] object-cover sm:col-span-5 sm:col-start-8 sm:block" />
</XRayGrid>
);
}