MCPcopy
hub / github.com/mantinedev/ui.mantine.dev / Subgrid

Function Subgrid

lib/Subgrid/Subgrid.tsx:8–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 BASE_HEIGHT / children - spacing * ((children - 1) / children);
7
8export function Subgrid() {
9 const theme = useMantineTheme();
10 return (
11 <Container my="md">
12 <SimpleGrid cols={{ base: 1, xs: 4 }}>
13 {getChild(BASE_HEIGHT)}
14 <Stack>
15 {getChild(getSubHeight(2, px(theme.spacing.md) as number))}
16 {getChild(getSubHeight(2, px(theme.spacing.md) as number))}
17 </Stack>
18 <Stack>
19 {getChild(getSubHeight(3, px(theme.spacing.md) as number))}
20 {getChild(getSubHeight(3, px(theme.spacing.md) as number))}
21 {getChild(getSubHeight(3, px(theme.spacing.md) as number))}
22 </Stack>
23 {getChild(BASE_HEIGHT)}
24 </SimpleGrid>
25 </Container>
26 );
27}

Callers

nothing calls this directly

Calls 2

getChildFunction · 0.85
getSubHeightFunction · 0.85

Tested by

no test coverage detected