@pandacss/studio
Version:
The automated token documentation for Panda CSS
14 lines (10 loc) • 494 B
JavaScript
import { createElement, forwardRef } from 'react'
import { splitProps } from '../helpers.mjs';
import { getCenterStyle } from '../patterns/center.mjs';
import { panda } from './factory.mjs';
export const Center = /* @__PURE__ */ forwardRef(function Center(props, ref) {
const [patternProps, restProps] = splitProps(props, ["inline"])
const styleProps = getCenterStyle(patternProps)
const mergedProps = { ref, ...styleProps, ...restProps }
return createElement(panda.div, mergedProps)
})