# @types/react-show-more

> TypeScript definitions for react-show-more

Latest version **2.0.7** (published 2024-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-show-more
pnpm add @types/react-show-more
yarn add @types/react-show-more
bun add @types/react-show-more
```

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.0.7 |
| Published | 2024-10-04 |
| First published | 2018-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.0.7 (latest) — 2024-10-04
- 2.0.6 (ts4.7) — 2023-11-07
- 2.0.3 (ts3.8) — 2021-07-08
- 2.0.2 (ts3.2) — 2020-05-15
- 2.0.1 (ts2.9) — 2018-08-06
- 2.0.0 (ts2.7) — 2018-06-20
- 2.0.5 — 2023-10-18
- 2.0.4 — 2023-09-27

## README

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

declare namespace ReactShowMore {
    interface ReactShowMoreProps {
        /**
         * Specifies how many lines of text should be preserved until it gets truncated. false and
         * any integer < 1 will result in the text not getting clipped at all.
         *
         * @default false
         */
        lines?: number | false | undefined;

        /**
         * The text to display in the anchor element to show more.
         *
         * @default "Show more"
         */
        more?: React.ReactNode | undefined;

        /**
         * The text to display in the anchor element to show less.
         *
         * @default "Show less"
         */
        less?: React.ReactNode | undefined;

        /**
         * The text to be truncated. Anything that can be evaluated as text.
         */
        children?: React.ReactNode | undefined;

        /**
         * Class name(s) to add to the anchor elements.
         *
         * @default ""
         */
        anchorClass?: string | undefined;
    }
}

declare class ReactShowMore extends React.Component<ReactShowMore.ReactShowMoreProps> {}
export = ReactShowMore;

````

### Additional Details
 * Last updated: Fri, 04 Oct 2024 16:42:27 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Naor Torgeman](https://github.com/naortor).

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