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:
parent
adb26787c8
commit
d3314233bd
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user