💈 Shave is a 0 dep JS plugin that truncates text to fit within an element based on a set max-height ✁
-
Updated
Sep 8, 2025 - TypeScript
💈 Shave is a 0 dep JS plugin that truncates text to fit within an element based on a set max-height ✁
"Cross browser" solution for the poorly supported `-webkit-line-clamp` css property regarding to multi-line text truncation
Cuttr is a javascript plugin that truncates multi-line text content with multiple truncation methods and custom ellipsis.
React multiline text clamping component with show more/less feature
📃React component to show more text or show less
Clamping multiline contents with ease.
React component for adding an ellipsis to the middle of a line of text.
Display long text with read more and read less
Streamline your UI with this React component that is designed to truncate text seamlessly. [Storybook Doc] https://64f883177ec11e1edcf84fc7-hpmuefbevq.chromatic.com/?path=/docs/stories-truncatable--docs
Framework agnostic code to dynamically truncate long text in the center.
Support for truncating multiple lines in Tailwindcss
Make short numbers from long numbers
Jquery Plugin to truncate texts easily
Truncate filenames from a prefix
✂️ Truncate text by number of lines
Truncate text in React using react-lines-ellipsis
PHP function that truncates text in HTML while preserving the tags and the HTML validity.
Add a description, image, and links to the truncate-text topic page so that developers can more easily learn about it.
To associate your repository with the truncate-text topic, visit your repo's landing page and select "manage topics."