@chakra-v2/styled-system
Version:
Style function for css-in-js building component libraries
12 lines (11 loc) • 355 B
TypeScript
/**
* Expands an array or object syntax responsive style.
*
* @example
* expandResponsive({ mx: [1, 2] })
* // or
* expandResponsive({ mx: { base: 1, sm: 2 } })
*
* // => { mx: 1, "@media(min-width:<sm>)": { mx: 2 } }
*/
export declare const expandResponsive: (styles: Record<string, any>) => (theme: Record<string, any>) => Record<string, any>;