National Party Month

    @types/react-responsive-masonry
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.0 • Public • Published

    Installation

    npm install --save @types/react-responsive-masonry

    Summary

    This package contains type definitions for react-responsive-masonry (https://github.com/cedricdelpoux/react-responsive-masonry#readme).

    Details

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

    index.d.ts

    // Type definitions for react-responsive-masonry 2.1
    // Project: https://github.com/cedricdelpoux/react-responsive-masonry#readme
    // Definitions by: themashcodee <https://github.com/themashcodee>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    import { CSSProperties, ReactNode, ReactElement } from 'react';
    
    export interface MasonryProps {
        children: ReactNode;
        /**
         * Injected by ResponsiveMasonry
         *
         * Default Value = 3
         */
        columnsCount?: number;
        /**
         * Margin surrounding each item e.g. "10px" or "1.5rem" (css gap property)
         *
         * Default Value = "0"
         */
        gutter?: string;
        className?: string;
        style?: CSSProperties;
    }
    
    export interface ResponsiveMasonryProps {
        children: ReactNode;
        /**
         * A Object containing Keys as breakpoints in px and values as the columns count
         *
         * Default Value = { 350: 1, 750: 2, 900: 3 }
         */
        columnsCountBreakPoints?: {
            [key: number]: number;
        };
        className?: string;
        style?: CSSProperties;
    }
    
    export default function Masonry(props: MasonryProps): ReactElement;
    export function ResponsiveMasonry(props: ResponsiveMasonryProps): ReactElement;

    Additional Details

    • Last updated: Sun, 18 Sep 2022 16:02:49 GMT
    • Dependencies: @types/react
    • Global values: none

    Credits

    These definitions were written by themashcodee.

    Keywords

    none

    Install

    npm i @types/react-responsive-masonry

    DownloadsWeekly Downloads

    2,121

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    5.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • types