0.14.4 • Published 6 months ago

@types/react-text-truncate v0.14.4

Weekly downloads
2,726
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for react-text-truncate 0.14
// Project: https://github.com/ShinyChang/react-text-truncate
// Definitions by: Adrien Antoine <https://github.com/adriantoine>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

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: Thu, 08 Jul 2021 22:41:40 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Adrien Antoine.