Noteworthy Programs Map

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

    2.2.2 • Public • Published

    Installation

    npm install --save @types/react-headroom

    Summary

    This package contains type definitions for react-headroom (https://kyleamathews.github.io/react-headroom/).

    Details

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

    index.d.ts

    // Type definitions for react-headroom 2.2
    // Project: https://kyleamathews.github.io/react-headroom/, https://github.com/kyleamathews/react-headroom
    // Definitions by: Zero Cho <https://github.com/zerocho>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    import { CSSProperties, ReactNode, Component } from 'react';
    
    declare class Headroom extends Component<ReactHeadroomProps> {
        constructor(props: ReactHeadroomProps);
    }
    
    export interface ReactHeadroomProps {
        style?: CSSProperties | undefined;
        onPin?: (() => void) | undefined;
        onUnpin?: (() => void) | undefined;
        onUnfix?: (() => void) | undefined;
        upTolerance?: number | undefined;
        downTolerance?: number | undefined;
        disable?: boolean | undefined;
        wrapperStyle?: CSSProperties | undefined;
        parent?: (() => any) | undefined;
        pinStart?: number | undefined;
        calcHeightOnResize?: boolean | undefined;
        disableInlineStyles?: boolean | undefined;
        className?: string | undefined;
        children: ReactNode;
    }
    
    export default Headroom;

    Additional Details

    • Last updated: Thu, 08 Jul 2021 20:20:45 GMT
    • Dependencies: @types/react
    • Global values: none

    Credits

    These definitions were written by Zero Cho.

    Keywords

    none

    Install

    npm i @types/react-headroom

    DownloadsWeekly Downloads

    11,202

    Version

    2.2.2

    License

    MIT

    Unpacked Size

    4.84 kB

    Total Files

    4

    Last publish

    Collaborators

    • types