# @types/react-text-truncate

> TypeScript definitions for react-text-truncate

Latest version **0.19.0** (published 2024-09-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-text-truncate
pnpm add @types/react-text-truncate
yarn add @types/react-text-truncate
bun add @types/react-text-truncate
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.19.0 |
| Published | 2024-09-23 |
| First published | 2019-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-text-truncate
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-text-truncate
- npm.io page: https://npm.io/package/@types/react-text-truncate

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 0.19.0 (latest) — 2024-09-23
- 0.14.4 (ts4.7) — 2023-11-07
- 0.14.1 (ts3.9) — 2021-07-08
- 0.14.0 (ts3.2) — 2019-03-18
- 0.14.3 — 2023-10-18
- 0.14.2 — 2023-09-27

## 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-text-truncate/index.d.ts)
````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](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Adrien Antoine](https://github.com/adriantoine).

---
_Source: https://npm.io/package/@types/react-text-truncate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
