Component that implements show more/less text functionality, typically used to hide portions of large text fields that a user may or may not be interested in.
Options
The component makes use of the '-webkit-line-clamp' CSS property to limit the number of lines shown. This property is supported in all modern browsers (https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp)
It has been tested and verified in Chrome, Edge and Firefox.
Known issues
Please do not hesitate to contact me if there are any issues or if you have any improvement suggestions!