import { forwardRef } from 'react'; import { Box, BoxProps } from '../box/box.js'; /** * A grid item is a child of the Grid component. It can be * placed in a specific column and row. */ export interface GridItemProps extends BoxProps { /** Specifies a specific column this item should be in. */ column?: number; /** Specifies a specific row this item should be in. */ row?: number; } export const GridItem = forwardRef((props, ref) => { const { column, row, ...rest } = props; const style = { gridColumn: column, gridRow: row, ...rest.style, }; return ; });