react-truncated-component
v1.0.5
Published
A React component to truncate text with format
Downloads
8,726
Readme
Install
npm install --save react-truncated-component
Usage
function TruncatedText() {
return (
<ReactTruncatedComponent ellipsis="..." numberOfLines={5} lineHeight={23}>
<p>{/*
put your long text right here
*/}</p>
</ReactTruncatedComponent>
);
}
Docs
To see the documentation visit the website.
License
MIT © Juan Garcia