UNPKG

@chakra-v2/styled-system

Version:

Style function for css-in-js building component libraries

27 lines (24 loc) 1 kB
import { t } from '../utils/index.mjs'; const scroll = { scrollBehavior: true, scrollSnapAlign: true, scrollSnapStop: true, scrollSnapType: true, // scroll margin scrollMargin: t.spaceT("scrollMargin"), scrollMarginTop: t.spaceT("scrollMarginTop"), scrollMarginBottom: t.spaceT("scrollMarginBottom"), scrollMarginLeft: t.spaceT("scrollMarginLeft"), scrollMarginRight: t.spaceT("scrollMarginRight"), scrollMarginX: t.spaceT(["scrollMarginLeft", "scrollMarginRight"]), scrollMarginY: t.spaceT(["scrollMarginTop", "scrollMarginBottom"]), // scroll padding scrollPadding: t.spaceT("scrollPadding"), scrollPaddingTop: t.spaceT("scrollPaddingTop"), scrollPaddingBottom: t.spaceT("scrollPaddingBottom"), scrollPaddingLeft: t.spaceT("scrollPaddingLeft"), scrollPaddingRight: t.spaceT("scrollPaddingRight"), scrollPaddingX: t.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]), scrollPaddingY: t.spaceT(["scrollPaddingTop", "scrollPaddingBottom"]) }; export { scroll };