import { createElement } from "react"; /** * External dependencies */ /** * Internal dependencies */ import { contextConnect } from '../context'; import { View } from '../view'; import useGrid from './hook'; function UnconnectedGrid(props, forwardedRef) { const gridProps = useGrid(props); return createElement(View, { ...gridProps, ref: forwardedRef }); } /** * `Grid` is a primitive layout component that can arrange content in a grid configuration. * * ```jsx * import { * __experimentalGrid as Grid, * __experimentalText as Text * } from `@wordpress/components`; * * function Example() { * return ( * * Code * is * Poetry * * ); * } * ``` */ export const Grid = contextConnect(UnconnectedGrid, 'Grid'); export default Grid; //# sourceMappingURL=component.js.map