drenther/use-clamp-text

react hook to clamp multiline text to a given height in a responsive way and with extreme flexibility (under 2.5kb)

TypeScriptreacthookshooktypescriptreact-hooksclamp-text
This is stars and forks stats for /drenther/use-clamp-text repository. As of 28 Apr, 2024 this repository has 173 stars and 1 forks.

use-clamp-text react hook to clamp multiline text to a given height in a responsive way and with extreme flexibility (under 2.5kb) Line Clampin’ (Truncating Multiple Line Text) is a major hassle still for most browsers. This tiny react hook eases that pain. Why hook? Cause it gives extreme flexibility over how you want to control the text. Do you want truncate it or not? When to truncate it? How to show read more interactions? and more... Usage Basic Example import { useClampText } from 'use-clamp-text'; const...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
tutao/tutanotaTypeScriptJavaScriptKotlin5.5k05050
developer-plus/vue-hbs-adminVueTypeScriptHTML1140330
BenRoe/awesome-mechanical-keyboardAstroCSSTypeScript2.6k+61780
taoyage/yg-configsJavaScriptTypeScriptShell2780440
google-research/big_visionJupyter NotebookPythonTypeScript1k+1773+1
VictoriaMetrics/VictoriaMetricsGoTypeScriptSCSS9.5k+37977+4
labring/sealosGoTypeScriptMakefile11.5k01.9k0
nymtech/nymRustTypeScriptGo1k02280
CGAL/cgalC++JetBrains MPSTypeScript4.2k+161.3k+1
quilljs/quillTypeScriptMDXJavaScript37.1k03.1k0