💈 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 ✁
Framework agnostic code to dynamically truncate long text in the center.
React component for adding an ellipsis to the middle of a line of text.
A react hook to dynamically truncate text from middle.
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
React and Next.js text truncator (read more or less) that limits the display of text based on a maximum set length for words.
Overflow text for react.
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."