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