react-truncate-dom

1.0.0 • Public • Published

react-truncate-dom

propTypes = {
  html: PropTypes.string,
  line: PropTypes.number,
  truncateText: PropTypes.string,
  isStripTags: PropTypes.bool,
  allowedTags: PropTypes.string,
};
 
defaultProps = {
  html: '',
  line: 1,
  truncateText: '...',
  isStripTags: true,
  allowedTags: '<em>',
};

Readme

Keywords

none

Package Sidebar

Install

npm i react-truncate-dom

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

190 kB

Total Files

16

Last publish

Collaborators

  • jarvisaoieong