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

1.0.4 • Public • Published

Installation

npm install --save @types/react-virtualized-auto-sizer

Summary

This package contains type definitions for react-virtualized-auto-sizer (https://github.com/bvaughn/react-virtualized-auto-sizer/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-virtualized-auto-sizer.

index.d.ts

import * as React from "react";

export interface Size {
    height: number;
    width: number;
}

export interface AutoSizerProps {
    /** Function responsible for rendering children. */
    children: (size: Size) => React.ReactNode;

    /** Optional custom CSS class name to attach to root AutoSizer element.    */
    className?: string | undefined;

    /** Default height to use for initial render; useful for SSR */
    defaultHeight?: number | undefined;

    /** Default width to use for initial render; useful for SSR */
    defaultWidth?: number | undefined;

    /** Disable dynamic :height property */
    disableHeight?: boolean | undefined;

    /** Disable dynamic :width property */
    disableWidth?: boolean | undefined;

    /** Nonce of the inlined stylesheet for Content Security Policy */
    nonce?: string | undefined;

    /** Callback to be invoked on-resize */
    onResize?: ((size: Size) => void) | undefined;

    /** Optional inline style */
    style?: React.CSSProperties | undefined;
}

export default class extends React.Component<AutoSizerProps> {}

Additional Details

  • Last updated: Tue, 12 Dec 2023 19:06:50 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Hidemi Yukita.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-virtualized-auto-sizer

Weekly Downloads

416,034

Version

1.0.4

License

MIT

Unpacked Size

4.97 kB

Total Files

5

Last publish

Collaborators

  • types