react-only
Version:
🔍 <Only /> displays some contents for a specific screen size
15 lines (14 loc) • 459 B
TypeScript
import * as React from "react";
export interface MatchChildProps {
strict?: boolean;
matchMedia?: string;
only?: string;
}
declare type Element = React.ReactElement<MatchChildProps & any, string | React.ComponentType<MatchChildProps & any>> | null;
interface MatchProps {
[key: string]: any;
children: Element | Element[] | null;
as?: string;
}
export declare const Match: React.FunctionComponent<MatchProps>;
export {};