UNPKG

@cerberus-design/styled-system

Version:

Cerberus Design System Panda-CSS styled-system.

14 lines (10 loc) 527 B
import { createElement, forwardRef } from 'react' import { splitProps } from '../helpers.mjs'; import { getFloatStyle } from '../patterns/float.mjs'; import { cerberus } from './factory.mjs'; export const Float = /* @__PURE__ */ forwardRef(function Float(props, ref) { const [patternProps, restProps] = splitProps(props, ["offsetX","offsetY","offset","placement"]) const styleProps = getFloatStyle(patternProps) const mergedProps = { ref, ...styleProps, ...restProps } return createElement(cerberus.div, mergedProps) })