Grid of stacked blocks
Columns of blocks of different heights that line up as one grid.
Add it to your project
Or install the packages yourselfTerminal
npm install @mantine/core
First time with Mantine UI? Set it up once.
The code
import { Container, px, SimpleGrid, Skeleton, Stack, useMantineTheme } from '@mantine/core';
const getChild = (height: number) => <Skeleton height={height} radius="md" animate={false} />;
const BASE_HEIGHT = 360;
const getSubHeight = (children: number, spacing: number) =>
BASE_HEIGHT / children - spacing * ((children - 1) / children);
export function Subgrid() {
const theme = useMantineTheme();
return (
<Container my="md">
<SimpleGrid cols={{ base: 1, xs: 4 }}>This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.