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

0.14.4 • Public • Published

Installation

npm install --save @types/react-text-truncate

Summary

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

Details

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

index.d.ts

import * as React from "react";

export interface TextTruncateProps {
    containerClassName?: string | undefined;
    element?: string | undefined;
    line?: number | boolean | undefined;
    onCalculated?: (() => void) | undefined;
    onTruncated?: (() => void) | undefined;
    onToggled?: ((truncated: boolean) => void) | undefined;
    text?: string | undefined;
    textElement?: React.ReactNode | undefined;
    textTruncateChild?: React.ReactNode | undefined;
    truncateText?: string | undefined;
    maxCalculateTimes?: number | undefined;
}

declare class TextTruncate extends React.Component<TextTruncateProps> {}

export default TextTruncate;

Additional Details

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

Credits

These definitions were written by Adrien Antoine.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-text-truncate

Weekly Downloads

55,244

Version

0.14.4

License

MIT

Unpacked Size

4.04 kB

Total Files

5

Last publish

Collaborators

  • types