@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.14.417,002ts4.7
0.14.417,002ts4.6
0.14.417,002ts4.5
0.14.17,671ts4.4
0.14.17,671ts4.3
0.14.17,671ts4.2
0.14.17,671ts4.1
0.14.17,671ts4.0
0.14.17,671ts3.9
0.14.17,671ts3.8
0.14.17,671ts3.7
0.14.17,671ts3.6
0.19.02,530ts5.7
0.19.02,530ts5.6
0.19.02,530ts5.5
0.19.02,530ts5.4
0.19.02,530ts5.3
0.19.02,530ts5.2
0.19.02,530ts5.1
0.19.02,530ts5.0
0.19.02,530ts4.9
0.19.02,530ts4.8
0.19.02,530latest
0.19.02,530ts5.8
0.14.0312ts3.5
0.14.0312ts3.4
0.14.0312ts3.3
0.14.0312ts3.2
0.14.0312ts3.1
0.14.0312ts3.0
0.14.0312ts2.9
0.14.0312ts2.8

Version History

VersionDownloads (Last 7 Days)Published
0.19.02,530
0.14.417,002
0.14.3609
0.14.2306
0.14.17,671
0.14.0312

Package Sidebar

Install

npm i @types/react-text-truncate

Weekly Downloads

28,430

Version

0.19.0

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types