Skip to content

Commit

Permalink
Update pyi files for new no_of_lines prop added to rx.Text
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf committed Nov 16, 2023
1 parent 6c1a2c9 commit 524dc2b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reflex/components/forms/iconbutton.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class IconButton(Text):
is_round: Optional[Union[Var[bool], bool]] = None,
spinner: Optional[Union[Var[str], str]] = None,
as_: Optional[Union[Var[str], str]] = None,
no_of_lines: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
Expand Down Expand Up @@ -93,6 +94,7 @@ class IconButton(Text):
is_round: If true, the button will be perfectly round. Else, it'll be slightly round
spinner: Replace the spinner component when isLoading is set to true
as_: Override the tag. The default tag is `<p>`.
no_of_lines: 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.
style: The style of the component.
key: A unique key for the component.
id: The id for the component.
Expand Down
2 changes: 2 additions & 0 deletions reflex/components/forms/radio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class Radio(Text):
is_read_only: Optional[Union[Var[bool], bool]] = None,
is_required: Optional[Union[Var[bool], bool]] = None,
as_: Optional[Union[Var[str], str]] = None,
no_of_lines: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
Expand Down Expand Up @@ -187,6 +188,7 @@ class Radio(Text):
is_read_only: If true, the radio will be read-only
is_required: If true, the radio button will be required. This also sets `aria-required` to true.
as_: Override the tag. The default tag is `<p>`.
no_of_lines: 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.
style: The style of the component.
key: A unique key for the component.
id: The id for the component.
Expand Down
2 changes: 2 additions & 0 deletions reflex/components/forms/select.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class Option(Text):
*children,
value: Optional[Union[Var[Any], Any]] = None,
as_: Optional[Union[Var[str], str]] = None,
no_of_lines: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
Expand Down Expand Up @@ -194,6 +195,7 @@ class Option(Text):
Args:
*children: The children of the component.
as_: Override the tag. The default tag is `<p>`.
no_of_lines: 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.
style: The style of the component.
key: A unique key for the component.
id: The id for the component.
Expand Down
2 changes: 2 additions & 0 deletions reflex/components/typography/text.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Text(ChakraComponent):
cls,
*children,
as_: Optional[Union[Var[str], str]] = None,
no_of_lines: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
Expand Down Expand Up @@ -75,6 +76,7 @@ class Text(ChakraComponent):
Args:
*children: The children of the component.
as_: Override the tag. The default tag is `<p>`.
no_of_lines: 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.
style: The style of the component.
key: A unique key for the component.
id: The id for the component.
Expand Down

0 comments on commit 524dc2b

Please sign in to comment.