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

0.19.0 • 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.

import * as React from "react";

declare namespace TextTruncate {
    interface TextTruncateProps {
        containerClassName?: string | undefined;
        /** @default "div" */
        element?: string | undefined;
        /** @default 1 */
        line?: number | boolean | undefined;
        onCalculated?: (() => void) | undefined;
        onTruncated?: (() => void) | undefined;
        onToggled?: ((truncated: boolean) => void) | undefined;
        /** @default "" */
        text?: string | undefined;
        /** @default "span" */
        textElement?: React.ReactNode | undefined;
        textTruncateChild?: React.ReactNode | undefined;
        /** @default "..." */
        truncateText?: string | undefined;
        /** @default 10 */
        maxCalculateTimes?: number | undefined;
    }
}

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

export = TextTruncate;

Additional Details

  • Last updated: Mon, 23 Sep 2024 18:39:57 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

20,472

Version

0.19.0

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types