Skip to content

Commit

Permalink
minor update to select prop (#2424)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgberkeley committed Jan 21, 2024
1 parent 9446a1e commit b305f89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reflex/components/radix/themes/components/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent):
tag = "Select.Root"

# The size of the select: "1" | "2" | "3"
size: Var[Literal[1, 2, 3]]
size: Var[Literal["1", "2", "3"]]

# The value of the select when initially rendered. Use when you do not need to control the state of the select.
default_value: Var[str]
Expand Down
8 changes: 6 additions & 2 deletions reflex/components/radix/themes/components/select.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent):
],
]
] = None,
size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None,
size: Optional[
Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
] = None,
default_value: Optional[Union[Var[str], str]] = None,
value: Optional[Union[Var[str], str]] = None,
default_open: Optional[Union[Var[bool], bool]] = None,
Expand Down Expand Up @@ -1540,7 +1542,9 @@ class HighLevelSelect(SelectRoot):
]
] = None,
width: Optional[Union[Var[str], str]] = None,
size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None,
size: Optional[
Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
] = None,
default_value: Optional[Union[Var[str], str]] = None,
value: Optional[Union[Var[str], str]] = None,
default_open: Optional[Union[Var[bool], bool]] = None,
Expand Down

0 comments on commit b305f89

Please sign in to comment.