mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
829 B
TypeScript
28 lines
829 B
TypeScript
// Type definitions for react-sticky 5.0
|
|
// Project: https://github.com/captivationsoftware/react-sticky
|
|
// Definitions by: Matej Lednicky <http://www.thinkcreatix.com/>, Curtis Warren <https://github.com/curtisw0>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
import * as React from "react";
|
|
|
|
declare module "react-sticky" {
|
|
|
|
export var StickyContainer: React.ComponentClass<React.HTMLAttributes<HTMLDivElement>>;
|
|
|
|
export interface StickyProps {
|
|
isActive?: boolean;
|
|
className?: string;
|
|
style?: any;
|
|
stickyClassName?: string;
|
|
stickyStyle?: any;
|
|
topOffset?: number;
|
|
bottomOffset?: number;
|
|
onStickyStateChange?: (isSticky: boolean) => void;
|
|
}
|
|
|
|
export var Sticky: React.ComponentClass<StickyProps>;
|
|
|
|
}
|
|
|