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

3.2.3 • 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

import { Component, CSSProperties, ReactNode } 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;
    pin?: boolean | undefined;
    tag?: string | undefined;
}

export default Headroom;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Zero Cho, and Rafael Derolez.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.2.3
    5,099
  • 3.2.2
    52
  • 3.2.1
    256
  • 3.2.0
    1,128
  • 2.2.2
    6,667
  • 2.2.1
    1,815
  • 2.2.0
    0

Package Sidebar

Install

npm i @types/react-headroom

Weekly Downloads

15,017

Version

3.2.3

License

MIT

Unpacked Size

4.55 kB

Total Files

5

Last publish

Collaborators

  • types