@chakra-ui/layout
Version:
Chakra UI layout components that give you massive speed
44 lines (42 loc) • 845 B
JavaScript
'use client'
// src/stack/stack.utils.tsx
import { mapResponsive } from "@chakra-ui/breakpoint-utils";
function getDividerStyles(options) {
const { spacing, direction } = options;
const dividerStyles = {
column: {
my: spacing,
mx: 0,
borderLeftWidth: 0,
borderBottomWidth: "1px"
},
"column-reverse": {
my: spacing,
mx: 0,
borderLeftWidth: 0,
borderBottomWidth: "1px"
},
row: {
mx: spacing,
my: 0,
borderLeftWidth: "1px",
borderBottomWidth: 0
},
"row-reverse": {
mx: spacing,
my: 0,
borderLeftWidth: "1px",
borderBottomWidth: 0
}
};
return {
"&": mapResponsive(
direction,
(value) => dividerStyles[value]
)
};
}
export {
getDividerStyles
};
//# sourceMappingURL=chunk-5VJV6UNA.mjs.map