Skip to content

Commit 1e3edde

Browse files
author
Víctor Navarro
authored
Update README.md
1 parent 868c7ef commit 1e3edde

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# use-line-clamp
22

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)
7+
8+
https://user-images.githubusercontent.com/36263538/215266290-49dbc549-f710-402b-bc9e-9cc97215d829.mp4
49

510
## Install
611

@@ -40,4 +45,4 @@ function Example() {
4045
</div>
4146
);
4247
}
43-
```
48+
```

0 commit comments

Comments
 (0)