@atlaskit/page
Version:
A page layout organizes sections on a page using a grid and grid columns.
22 lines (21 loc) • 529 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.GridContext = void 0;
var _react = require("react");
var _constants = require("./constants");
/**
* __Grid context__
*
* Provides contextual information which is used by both
* the `Grid` and its `GridColumn` children.
*
* @internal
*/
var GridContext = exports.GridContext = /*#__PURE__*/(0, _react.createContext)({
isRoot: true,
isNested: false,
spacing: _constants.defaultSpacing,
columns: _constants.defaultGridColumns
});