UNPKG

@artsy/fresnel

Version:

An SSR compatible approach to CSS media query based responsive layouts for React.

19 lines (18 loc) 596 B
export declare enum InteractionKey { interaction = "interaction" } /** * Encapsulates all interaction data needed by the Media component. The data is * generated on initialization so no further runtime work is necessary. */ export declare class Interactions { static validKeys(): InteractionKey[]; private _interactions; constructor(interactions: { [name: string]: string; }); toRuleSets(): string[]; get interactions(): string[]; get dynamicResponsiveMediaQueries(): {}; shouldRenderMediaQuery(interaction: string, onlyMatch: string[]): boolean; }