UNPKG

react-only

Version:

🔍 <Only /> displays some contents for a specific screen size

12 lines (11 loc) 427 B
import { CSSProperties } from "react"; import { Breakpoints } from "./sanitize"; declare type CSSinJS = CSSProperties | { [key: string]: CSSProperties; }; interface Points { [breakpoint: string]: CSSinJS; } export declare const toJSON: (breakpoints: Breakpoints) => (points: Points) => Record<string, CSSinJS>; export declare const toCSS: (breakpoints: Breakpoints) => (points: Points) => string; export {};