UNPKG

@platform/css

Version:

Helpers for working with inline CSS.

16 lines (15 loc) 893 B
/// <reference types="react" /> import { t } from '../common'; export * from './util'; export declare const MEDIA_QUERY_RETINA = "@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)"; export declare const image: (image1x: string | undefined, image2x: string | undefined, options?: t.CssFormatImageOptions) => t.ICssBackgroundImage; export declare const toPositionEdges: (key: string, value?: any) => { position: string; top: string | number | undefined; right: string | number | undefined; bottom: string | number | undefined; left: string | number | undefined; } | undefined; export declare const formatPositionEdges: (key: string, target: any) => void; export declare const transform: (style?: false | import("react").CSSProperties | t.CssValue | null | undefined) => import("react").CSSProperties | t.CssValue; export declare const format: t.CssFormat;