-
It appears to default to 10px: import { mapObject } from '../helpers.mjs';
import { css } from '../css/index.mjs';
const stackConfig = {
transform(props) {
const { align, justify, direction = "column", gap = "10px", ...rest } = props;
return {
display: "flex",
flexDirection: direction,
alignItems: align,
justifyContent: justify,
gap,
...rest
};
}}
export const getStackStyle = (styles = {}) => stackConfig.transform(styles, { map: mapObject })
export const stack = (styles) => css(getStackStyle(styles)) How to override this value? |
Beta Was this translation helpful? Give feedback.
Answered by
anubra266
Jun 24, 2023
Replies: 2 comments 5 replies
-
@lucgagan In your config |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
lucgagan
-
For those coming from google, now can be achieved easier: patterns: {
extend: {
// remove gap
stack: definePattern({
defaultValues: { direction: 'column', gap: undefined },
}),
vstack: definePattern({
defaultValues: { gap: undefined },
}),
hstack: definePattern({
defaultValues: { gap: undefined },
}),
},
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lucgagan In your config