JSPM

@types/react-text-truncate

0.14.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 79371
  • Score
    100M100P100Q161744F
  • License MIT

TypeScript definitions for react-text-truncate

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/react-text-truncate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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: Wed, 18 Oct 2023 11:45:06 GMT
    • Dependencies: @types/react

    Credits

    These definitions were written by Adrien Antoine.