@cerberus-design/styled-system
Version:
Cerberus Design System Panda-CSS styled-system.
14 lines (10 loc) • 489 B
JavaScript
import { createElement, forwardRef } from 'react'
import { splitProps } from '../helpers.mjs';
import { getSmallStyle } from '../patterns/small.mjs';
import { cerberus } from './factory.mjs';
export const Small = /* @__PURE__ */ forwardRef(function Small(props, ref) {
const [patternProps, restProps] = splitProps(props, [])
const styleProps = getSmallStyle(patternProps)
const mergedProps = { ref, ...styleProps, ...restProps }
return createElement(cerberus.small, mergedProps)
})