Skip to content

Commit

Permalink
Add type and breakpoint props to Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
namakshenas committed Dec 5, 2024
1 parent 9c7206f commit dc22a60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ts/components/core/grid/Grid.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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<MantineSize, string>;
}

/** Grid */
Expand Down

0 comments on commit dc22a60

Please sign in to comment.