From dc22a60a6eaa55c21418abb40ed4f69a1520d14f Mon Sep 17 00:00:00 2001 From: "M. Namakshenas" Date: Thu, 5 Dec 2024 09:02:49 +0100 Subject: [PATCH] Add type and breakpoint props to Grid --- src/ts/components/core/grid/Grid.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ts/components/core/grid/Grid.tsx b/src/ts/components/core/grid/Grid.tsx index 131cb109..da9ef790 100644 --- a/src/ts/components/core/grid/Grid.tsx +++ b/src/ts/components/core/grid/Grid.tsx @@ -1,4 +1,4 @@ -import { Grid as MantineGrid, MantineSpacing, StyleProp } from "@mantine/core"; +import { Grid as MantineGrid, MantineSpacing, StyleProp, MantineSize } from "@mantine/core"; import { BoxProps } from "props/box"; import { DashBaseProps } from "props/dash"; import { StylesApiProps } from "props/styles"; @@ -19,6 +19,10 @@ interface Props extends BoxProps, StylesApiProps, DashBaseProps { columns?: number; /** Sets `overflow` CSS property on the root element, `'visible'` by default */ overflow?: React.CSSProperties["overflow"]; + /** Determines typeof of queries that are used for responsive styles, `'media'` by default */ + type?: 'media' | 'container'; + /** Breakpoints values, only applicable when `type="container"` is set, ignored when `type` is not set or `type="media"` is set. */ + breakpoints?: Record; } /** Grid */