Boxgrid
Boxgrid is a React and Tailwind CSS component from UI Layouts, licensed MIT. Copy it and paste it into your project.
UI Layouts
MIT
other
What it is
Boxgrid is a React and Tailwind CSS component from UI Layouts, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
Needs
npm i motion
Licence
This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Boxgrid
import preview from '@/assets/preview/Preview';
import Image from 'next/image';
import React, { useState } from 'react';
interface ProjectsTypes {
id: string;
img: string;
title: string;
des: string;
}
export default function BoxGrid() {
return (
<>
<div className='grid grid-rows-10 grid-cols-12 grid-flow-col gap-2 pt-10'>
<div className='row-start-1 col-span-2 row-end-6 dark:bg-neutral-800 bg-neutral-100 grid place-content-center h-full lg:rounded-xl rounded-md'>
<Image src={preview.dragitems} className=' object-cover' alt='' />
</div>
<div className='row-start-6 row-end-11 col-span-2 dark:bg-neutral-800 bg-neutral-100 grid place-content-center h-full lg:rounded-xl rounded-md'>
<Image src={preview.galleryNew} className=' object-cover' alt='' />
</div>
<div className='row-start-3 row-end-9 col-span-2 dark:bg-neutral-800 bg-neutral-100 grid place-content-center h-full lg:rounded-xl rounded-md'>
<Image src={preview.carousel} className=' object-cover' alt='' />
</div>
<div className='row-start-1 col-span-2 row-end-6 dark:bg-neutral-800 bg-neutral-100 grid place-content-center h-full lg:rounded-xl rounded-md'>
<Image src={preview.clippath} className=' object-cover' alt='' />
</div>
<div className='row-start-6 row-end-11 col-span-2 dark:bg-neutral-800 bg-neutral-100 grid place-content-center h-full lg:rounded-xl rounded-md'>
<Image src={preview.sparkles} className=' object-cover' alt='' />
</div>
<div className='row-start-3 row-end-9 col-span-2 dark:bg-neutral-800 bg-neutral-100 grid place-content-center h-full lg:rounded-xl rounded-md'>
<Image src={preview.carousel} className=' object-cover' alt='' />
</div>
<div className='row-start-1 col-span-2 row-end-6 dark:bg-neutral-800 bg-neutral-100 grid place-content-center h-full lg:rounded-xl rounded-md'>
<Image src={preview.faqs} className=' object-cover' alt='' />
</div>
<div className='row-start-6 row-end-11 col-span-2 dark:bg-neutral-800 bg-neutral-100 grid place-content-center h-full lg:rounded-xl rounded-md'>
<Image src={preview.grid} className=' object-cover' alt='' />
</div>
<div className='row-start-3 row-end-9 col-span-2 dark:bg-neutral-800 bg-neutral-100 grid place-content-center h-full lg:rounded-xl rounded-md'>
<Image src={preview.image_masking} className=' object-cover' alt='' />
</div>
</div>
</>
);
}