npm.io
1.4.5 • Published 2 years ago

@types/react-show-more-text

Licence
MIT
Version
1.4.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-show-more-text

Summary

This package contains type definitions for react-show-more-text (https://github.com/devzonetech/react-show-more-text).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-show-more-text.

index.d.ts

import * as React from "react";

export interface ReactShowMoreTextProps {
    anchorClass?: string | undefined;
    children?: React.ReactNode | undefined;
    className?: string | undefined;
    expanded?: boolean | undefined;
    keepNewLines?: boolean | undefined;
    less?: React.ReactNode | undefined;
    lines?: number | undefined;
    more?: React.ReactNode | undefined;
    onClick?: ((expanded: boolean) => void) | undefined;
    width?: number | undefined;
    truncatedEndingComponent?: React.ReactNode | undefined;
}

export class ReactShowMoreText extends React.Component<ReactShowMoreTextProps> {}

export default ReactShowMoreText;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Ewe Seong, and Yeoh.