UNPKG

@serendie/ui

Version:

Adaptive UI component library as part of Serendie Design System by Mitsubishi Electric

14 lines (10 loc) 500 B
import { createElement, forwardRef } from 'react' import { splitProps } from '../helpers.js'; import { getHstackStyle } from '../patterns/hstack.js'; import { styled } from './factory.js'; export const HStack = /* @__PURE__ */ forwardRef(function HStack(props, ref) { const [patternProps, restProps] = splitProps(props, ["justify","gap"]) const styleProps = getHstackStyle(patternProps) const mergedProps = { ref, ...styleProps, ...restProps } return createElement(styled.div, mergedProps) })