diff --git a/reflex/components/typography/text.py b/reflex/components/typography/text.py index e9c5c311e..b9c99b25b 100644 --- a/reflex/components/typography/text.py +++ b/reflex/components/typography/text.py @@ -12,3 +12,6 @@ class Text(ChakraComponent): # Override the tag. The default tag is `
`. 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]