add in new no_of_lines prop for text (#2184)

* add in new no_of_lines prop for text

* black update

---------

Co-authored-by: Tom Gotsman <tomgotsman@toms-mbp.lan>
This commit is contained in:
Tom Gotsman 2023-11-15 17:59:52 -08:00 committed by GitHub
parent adb26787c8
commit d3314233bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,3 +12,6 @@ class Text(ChakraComponent):
# Override the tag. The default tag is `<p>`.
as_: Var[str]
# Truncate text after a specific number of lines. It will render an ellipsis when the text exceeds the width of the viewport or max_width prop.
no_of_lines: Var[int]