react-grid-system
Version:
A powerful Bootstrap-like responsive grid system for React.
15 lines (12 loc) • 396 B
JavaScript
let configuration = {
breakpoints: [576, 768, 992, 1200, 1600, 1920],
containerWidths: [540, 750, 960, 1140, 1540, 1810],
gutterWidth: 30,
gridColumns: 12,
defaultScreenClass: 'xxl',
maxScreenClass: 'xxl',
};
export const getConfiguration = () => configuration;
export const setConfiguration = (newConfiguration) => {
configuration = { ...configuration, ...newConfiguration };
};