react-word-cutter

1.2.1 • Public • Published

Simple way to trim text content as per your given limit

Install

npm i react-word-cutter --save

Import and use

import WordCutter from "react-word-cutter"

<WordCutter limit={8} >
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem, provident.
</WordCutter>
// ⇨ 'Lorem ip...'

On Hover

On Hover

Package Sidebar

Install

npm i react-word-cutter

Weekly Downloads

3

Version

1.2.1

License

MIT

Unpacked Size

15.8 kB

Total Files

4

Last publish

Collaborators

  • sahirmpatel