JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 193555
  • Score
    100M100P100Q21837F
  • License MIT

TypeScript definitions for react-responsive

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/react-responsive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/react-responsive

    Summary

    This package contains type definitions for react-responsive (https://github.com/contra/react-responsive).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-responsive/v1.

    index.d.ts

    import * as React from "react";
    
    declare namespace MediaQuery {
        interface MediaQueryProps {
            query?: string | undefined;
            // matchers
            orientation?: "portrait" | "landscape" | undefined;
            scan?: "progressive" | "interlace" | undefined;
            aspectRatio?: string | undefined;
            deviceAspectRatio?: string | undefined;
            height?: number | string | undefined;
            deviceHeight?: number | string | undefined;
            width?: number | string | undefined;
            deviceWidth?: number | string | undefined;
            color?: boolean | undefined;
            colorIndex?: boolean | undefined;
            monochrome?: boolean | undefined;
            resolution?: number | string | undefined;
            // types
            minAspectRatio?: string | undefined;
            maxAspectRatio?: string | undefined;
            minDeviceAspectRatio?: string | undefined;
            maxDeviceAspectRatio?: string | undefined;
            minHeight?: number | string | undefined;
            maxHeight?: number | string | undefined;
            minDeviceHeight?: number | string | undefined;
            maxDeviceHeight?: number | string | undefined;
            minDeviceWidth?: number | string | undefined;
            maxDeviceWidth?: number | string | undefined;
            minWidth?: number | string | undefined;
            maxWidth?: number | string | undefined;
            minColor?: number | undefined;
            maxColor?: number | undefined;
            minColorIndex?: number | undefined;
            maxColorIndex?: number | undefined;
            minMonochrome?: number | undefined;
            maxMonochrome?: number | undefined;
            minResolution?: number | string | undefined;
            maxResolution?: number | string | undefined;
            // types
            all?: boolean | undefined;
            grid?: boolean | undefined;
            aural?: boolean | undefined;
            braille?: boolean | undefined;
            handheld?: boolean | undefined;
            print?: boolean | undefined;
            projection?: boolean | undefined;
            screen?: boolean | undefined;
            tty?: boolean | undefined;
            tv?: boolean | undefined;
            embossed?: boolean | undefined;
            children?: React.ReactNode;
        }
    }
    
    declare class MediaQuery extends React.Component<MediaQuery.MediaQueryProps, any> {}
    export = MediaQuery;
    

    Additional Details

    • Last updated: Wed, 18 Oct 2023 11:45:06 GMT
    • Dependencies: @types/react

    Credits

    These definitions were written by Alexey Svetliakov.