Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a 'cutoff' prop #42

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

SektorDV
Copy link

@SektorDV SektorDV commented Nov 2, 2020

I happened upon a use case where I needed to define how many characters are to be removed from the last line for the ellipsis (for adding an inline 'see more' button in my case). Therefore I added an optional 'cutoff' prop to the component, which defaults to 5 and allows the user to set that value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant