minor update to select prop (#2424)

This commit is contained in:
Tom Gotsman 2024-01-21 13:31:47 -08:00 committed by GitHub
parent 9446a1e99f
commit b305f895a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -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]

View File

@ -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,
@ -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,