JSPM

@types/react-text-truncate

0.19.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 79371
  • Score
    100M100P100Q161693F
  • 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";
    
    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.