UNPKG

@pandacss/studio

Version:

The automated token documentation for Panda CSS

14 lines (10 loc) 528 B
import { createElement, forwardRef } from 'react' import { splitProps } from '../helpers.mjs'; import { getGridStyle } from '../patterns/grid.mjs'; import { panda } from './factory.mjs'; export const Grid = /* @__PURE__ */ forwardRef(function Grid(props, ref) { const [patternProps, restProps] = splitProps(props, ["gap","columnGap","rowGap","columns","minChildWidth"]) const styleProps = getGridStyle(patternProps) const mergedProps = { ref, ...styleProps, ...restProps } return createElement(panda.div, mergedProps) })