3.2.3 • Published 6 months ago

@types/react-headroom v3.2.3

Weekly downloads
4,600
License
MIT
Repository
github
Last release
6 months ago

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.