UNPKG

@retriever-ui/system

Version:
12 lines (11 loc) 711 B
import { BreakpointsType, ITheme } from '@retriever-ui/type'; import * as CSS from 'csstype'; import { CSSResponsive } from '../type/theme'; declare type Breakpoint = keyof BreakpointsType; export declare type ResponsiveObject<T = Record<string, unknown>> = { [key in Breakpoint]?: T; }; export declare type ResponsiveArray<T = Record<string, unknown>> = T[]; export declare type Responsive<T> = T | ResponsiveObject<T> | ResponsiveArray<T>; declare const responsive: (theme: ITheme, cssProperty?: keyof CSS.PropertiesHyphen<0 | (string & {}), string & {}> | undefined, props?: CSSResponsive<string | number> | undefined) => import("@emotion/utils").SerializedStyles | undefined; export default responsive;