# @types/react-truncate

> TypeScript definitions for react-truncate

Latest version **2.3.7** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-truncate
pnpm add @types/react-truncate
yarn add @types/react-truncate
bun add @types/react-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.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.3.7 |
| Published | 2023-11-07 |
| First published | 2017-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.3.7 (latest) — 2023-11-07
- 2.3.4 (ts3.6) — 2021-07-07
- 2.3.3 (ts2.8) — 2018-08-06
- 2.3.2 (ts2.6) — 2018-03-06
- 2.1.0 (ts2.3) — 2017-10-03
- 2.3.6 — 2023-10-18
- 2.3.5 — 2023-09-27
- 2.3.1 — 2018-03-01
- 2.3.0 — 2018-02-26
- 2.1.1 — 2018-02-12

## README

# Installation
> `npm install --save @types/react-truncate`

# Summary
This package contains type definitions for react-truncate (https://github.com/One-com/react-truncate).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-truncate.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-truncate/index.d.ts)
````ts
import * as React from "react";

export interface TruncateProps extends React.HTMLProps<Truncate> {
    lines?: number | false | undefined;
    ellipsis?: React.ReactNode | undefined;
    trimWhitespace?: boolean | undefined;
    onTruncate?(isTruncated: boolean): void;
}

declare class Truncate extends React.Component<TruncateProps> {}
export default Truncate;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Matt Perry](https://github.com/mattvperry).

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