5.0.3 • Published 6 months ago
@types/react-custom-scroll v5.0.3
Installation
npm install --save @types/react-custom-scroll
Summary
This package contains type definitions for react-custom-scroll (https://github.com/rommguy/react-custom-scroll).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-custom-scroll.
index.d.ts
// Type definitions for react-custom-scroll 4.3
// Project: https://github.com/rommguy/react-custom-scroll
// Definitions by: Guy Romm <https://github.com/rommguy>
// rvdende <https://github.com/rvdende>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
import { ComponentClass, ReactNode } from 'react';
/**
* Props for a CustomScroll component.
*/
export interface CustomScrollProps {
children?: ReactNode;
allowOuterScroll?: boolean | undefined;
heightRelativeToParent?: string | undefined;
flex?: number | string | undefined;
onScroll?: ((e?: any) => any) | undefined;
addScrolledClass?: boolean | undefined;
freezePosition?: boolean | undefined;
minScrollHandleHeight?: number | undefined;
rtl?: boolean | undefined;
scrollTo?: number | undefined;
keepAtBottom?: boolean | undefined;
className?: string | undefined;
}
/**
* Customize scrollbar design while using native scroll behavior.
*/
declare const CustomScroll: ComponentClass<CustomScrollProps>;
export default CustomScroll;
Additional Details
- Last updated: Thu, 14 Oct 2021 10:01:29 GMT
- Dependencies: @types/react
- Global values: none