react-grid-system icon indicating copy to clipboard operation
react-grid-system copied to clipboard

Question: Different number of columns depending on screen size

Open veloware opened this issue 3 years ago • 0 comments

Is it possible to have different number of columns, depending on the screen size. From what i can see in the Typescript types, you can only supply a single number to gridColumns

type Configuration = {
        breakpoints?: Array<number>,
        containerWidths?: Array<number>,
        gutterWidth?: number,
        gridColumns?: number,
        defaultScreenClass?: ScreenClass,
        maxScreenClass?: ScreenClass
    }

Is there any way to do this?

veloware avatar Feb 17 '22 12:02 veloware