UNPKG

@atlaskit/page

Version:

A page layout organizes sections on a page using a grid and grid columns.

16 lines 405 B
import { createContext } from 'react'; import { defaultGridColumns, defaultSpacing } from './constants'; /** * __Grid context__ * * Provides contextual information which is used by both * the `Grid` and its `GridColumn` children. * * @internal */ export const GridContext = /*#__PURE__*/createContext({ isRoot: true, isNested: false, spacing: defaultSpacing, columns: defaultGridColumns });