UNPKG

@pandacss/studio

Version:

The automated token documentation for Panda CSS

24 lines (21 loc) 614 B
import { getPatternStyles, patternFns } from '../helpers.mjs'; import { css } from '../css/index.mjs'; const vstackConfig = { transform(props) { const { justify, gap, ...rest } = props; return { display: "flex", alignItems: "center", justifyContent: justify, gap, flexDirection: "column", ...rest }; }, defaultValues:{gap:'10px'}} export const getVstackStyle = (styles = {}) => { const _styles = getPatternStyles(vstackConfig, styles) return vstackConfig.transform(_styles, patternFns) } export const vstack = (styles) => css(getVstackStyle(styles)) vstack.raw = getVstackStyle