npm.io
2.3.7 • Published 2 years ago

@types/react-truncate

Licence
MIT
Version
2.3.7
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Matt Perry.