@serendie/ui
Version:
Adaptive UI component library as part of Serendie Design System by Mitsubishi Electric
14 lines (10 loc) • 491 B
JavaScript
import { createElement, forwardRef } from 'react'
import { splitProps } from '../helpers.js';
import { getSpacerStyle } from '../patterns/spacer.js';
import { styled } from './factory.js';
export const Spacer = /* @__PURE__ */ forwardRef(function Spacer(props, ref) {
const [patternProps, restProps] = splitProps(props, ["size"])
const styleProps = getSpacerStyle(patternProps)
const mergedProps = { ref, ...styleProps, ...restProps }
return createElement(styled.div, mergedProps)
})