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.