npm install --save @types/react-show-more
This package contains type definitions for react-show-more (https://github.com/One-com/react-show-more).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-show-more.
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;
- Last updated: Fri, 04 Oct 2024 16:42:27 GMT
- Dependencies: @types/react
These definitions were written by Naor Torgeman.