1.3.0 ā€¢ Published 6 years ago

react-truncate-string v1.3.0

Weekly downloads
2,415
License
MIT
Repository
github
Last release
6 years ago

React Truncate String

Truncate strings like butter.

Build Status

Features

It truncates long long long long...long long strings in the middle!

demo: https://albinotonnina.github.io/react-truncate-string

šŸš€ ultra-blazingly-fast

šŸŒˆ ultra-light: 1.76 KB

Table of Contents

Install

yarn add react-truncate-string

Usage

Truncate in the middle of the string

import Truncate from 'react-truncate-string'

...

render(){

    return  <TruncateString text="your long string" />
}

Demos

https://albinotonnina.github.io/react-truncate-string

https://codesandbox.io/s/xvv9r5ozo

Maintainers

@albinotonnina

Contribute

PRs accepted.

TODO

  • truncate by words?
  • min start and end characters option?
  • change debounce time with option?

License

MIT Ā© 2018 Albino Tonnina

1.3.0

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago