UNPKG

@pandacss/studio

Version:

The automated token documentation for Panda CSS

14 lines (10 loc) 520 B
import { createElement, forwardRef } from 'react' import { splitProps } from '../helpers.mjs'; import { getWrapStyle } from '../patterns/wrap.mjs'; import { panda } from './factory.mjs'; export const Wrap = /* @__PURE__ */ forwardRef(function Wrap(props, ref) { const [patternProps, restProps] = splitProps(props, ["gap","rowGap","columnGap","align","justify"]) const styleProps = getWrapStyle(patternProps) const mergedProps = { ref, ...styleProps, ...restProps } return createElement(panda.div, mergedProps) })