react-ellipsify - Ellipsify content
Usage:
Lorem ipsum dolor sit amet... Pellentesque non sem rutrum... Fusce id libero nisl...
would yield
Lorem ipsum dolor sit amet…
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
- Craig Ambrose - Bumped peer dependencies
License
react-ellipsify is available under MIT. See LICENSE for more details.