react-ellipsify
Ellipsify content
Last updated 5 years ago by bebraw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-ellipsify 
SYNC missed versions from official npm registry.

build status

react-ellipsify - Ellipsify content

Usage:

<Ellipsify visibleItems={5} separator=' ' more='…' moreClass='more' atFront={true}>
    <p>Lorem ipsum dolor sit amet...</p>
    <p>Pellentesque non sem rutrum...</p>
    <p>Fusce id libero nisl...</p>
</Ellipsify>

would yield

<p>Lorem ipsum dolor sit amet<span className='more'>…</span></p>

If more is clicked, whole content is displayed.

See /demo for a complete example.

If you want to learn more about React, read SurviveJS - Webpack and React.

Development

  • Linting - npm run lint
  • Testing - npm test - This will lint too.
  • Developing - npm start - This will run a server at localhost:3000 and use Hot Module Reloading.
  • Demo deployment - npm run gh-pages and npm run deploy-gh-pages - Demo will contain README.md by default and comes with simple styling based on Pure.

Contributors

License

react-ellipsify is available under MIT. See LICENSE for more details.

Current Tags

  • 0.6.2                                ...           latest (5 years ago)

9 Versions

  • 0.6.2                                ...           5 years ago
  • 0.6.1                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (26)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |