UNPKG

@wordpress/components

Version:
31 lines (30 loc) 602 B
/** * Internal dependencies */ import { createComponent } from '../utils'; import useGrid from './hook'; /** * `Grid` is a primitive layout component that can arrange content in a grid configuration. * * @example * ```jsx * import { Grid, View } from `@wordpress/components/ui`; * * function Example() { * return ( * <Grid columns={ 3 }> * <View>Code</View> * <View>is</View> * <View>Poetry</View> * </Grid> * ); * } * ``` */ const Grid = createComponent({ as: 'div', useHook: useGrid, name: 'Grid' }); export default Grid; //# sourceMappingURL=component.js.map