hstack.mjs•610 B
import { getPatternStyles, patternFns } from '../helpers.mjs';
import { css } from '../css/index.mjs';
const hstackConfig = {
transform(props) {
const { justify, gap, ...rest } = props;
return {
display: "flex",
alignItems: "center",
justifyContent: justify,
gap,
flexDirection: "row",
...rest
};
},
defaultValues:{gap:'8px'}}
export const getHstackStyle = (styles = {}) => {
const _styles = getPatternStyles(hstackConfig, styles)
return hstackConfig.transform(_styles, patternFns)
}
export const hstack = (styles) => css(getHstackStyle(styles))
hstack.raw = getHstackStyle