Uneven grid
Placeholder blocks in rows of columns with different widths.
Placeholder blocks in rows of columns with different widths.
npm install @mantine/core
First time with Mantine UI? Set it up once.
/**
* Component from Mantine UI, https://ui.mantine.dev
* MIT License, Copyright (c) 2022 Vitaly Rtischev. Full text: https://github.com/mantinedev/ui.mantine.dev/blob/master/LICENCE
*/
import { Container, Grid, Skeleton } from '@mantine/core';
const child = <Skeleton height={140} radius="md" animate={false} />;
export function GridAsymmetrical() {
return (
<Container my="md">
<Grid>
<Grid.Col span={{ base: 12, xs: 4 }}>{child}</Grid.Col>
<Grid.Col span={{ base: 12, xs: 8 }}>{child}</Grid.Col>
<Grid.Col span={{ base: 12, xs: 8 }}>{child}</Grid.Col>
<Grid.Col span={{ base: 12, xs: 4 }}>{child}</Grid.Col>
<Grid.Col span={{ base: 12, xs: 3 }}>{child}</Grid.Col>
<Grid.Col span={{ base: 12, xs: 3 }}>{child}</Grid.Col>
<Grid.Col span={{ base: 12, xs: 6 }}>{child}</Grid.Col>
</Grid>
</Container>
);
}