MCPcopy Create free account
hub / github.com/chakra-ui/panda / transform

Function transform

packages/studio/styled-system/patterns/stack.mjs:5–15  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

3
4const stackConfig = {
5transform(props) {
6 const { align, justify, direction, gap, ...rest } = props;
7 return {
8 display: "flex",
9 flexDirection: direction,
10 alignItems: align,
11 justifyContent: justify,
12 gap,
13 ...rest
14 };
15},
16defaultValues:{direction:'column',gap:'8px'}}
17
18export const getStackStyle = (styles = {}) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected