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

Function getChild

lib/Subgrid/Subgrid.tsx:3–3  ·  view source on GitHub ↗
(height: number)

Source from the content-addressed store, hash-verified

1import { Container, px, SimpleGrid, Skeleton, Stack, useMantineTheme } from '@mantine/core';
2
3const getChild = (height: number) => <Skeleton height={height} radius="md" animate={false} />;
4const BASE_HEIGHT = 360;
5const getSubHeight = (children: number, spacing: number) =>
6 BASE_HEIGHT / children - spacing * ((children - 1) / children);

Callers 1

SubgridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected