-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
Description
Hi! First of all, great library!
I think a pretty common use case for this library is showing a brief preview of the text and let the user expand the preview to see the full text. In my case, I'm handling the expanded state on my component and either rendering the text itself of the one wrapper by the library, but it would be cool if the library supported this.
For this, I can think of two approaches:
- Adding a
maxLinesvalue on theonReflowfunction, so we can dynamically change between a small number and that one. - Add a new prop to support this
What do you think? Thanks!
Reactions are currently unavailable