You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,11 @@
1
1
# use-line-clamp
2
2
3
-
React.js hook to detect if text will clamp in X number of lines.
3
+
React.js hook to detect if text will clamp in X number of lines. This allows you to use lines instead of character for implementing "show more" behaviour.
4
+
5
+
6
+
[**See live demo**](https://stackblitz.com/edit/use-line-clamp?file=App.tsx)
0 commit comments