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

2.3.7 • Public • Published

Installation

npm install --save @types/react-truncate

Summary

This package contains type definitions for react-truncate (https://github.com/One-com/react-truncate).

Details

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

index.d.ts

import * as React from "react";

export interface TruncateProps extends React.HTMLProps<Truncate> {
    lines?: number | false | undefined;
    ellipsis?: React.ReactNode | undefined;
    trimWhitespace?: boolean | undefined;
    onTruncate?(isTruncated: boolean): void;
}

declare class Truncate extends React.Component<TruncateProps> {}
export default Truncate;

Additional Details

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

Credits

These definitions were written by Matt Perry.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-truncate

Weekly Downloads

42,708

Version

2.3.7

License

MIT

Unpacked Size

3.39 kB

Total Files

5

Last publish

Collaborators

  • types