Skip to content

Commit 9acee2e

Browse files
committed
select trigger native button prop
1 parent d9b5ea0 commit 9acee2e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

reflex_ui/components/base/select.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ class SelectTrigger(SelectBaseComponent):
140140
# Whether the component should ignore user interaction. Defaults to False.
141141
disabled: Var[bool]
142142

143+
# Whether the component renders a native <button> element when replacing it via the render prop.
144+
# Set to False if the rendered element is not a button (e.g. <div>). Defaults to True.
145+
native_button: Var[bool]
146+
143147
# The render prop
144148
render_: Var[Component]
145149

reflex_ui/components/base/select.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class SelectTrigger(SelectBaseComponent):
149149
cls,
150150
*children,
151151
disabled: Var[bool] | bool | None = None,
152+
native_button: Var[bool] | bool | None = None,
152153
render_: Component | Var[Component] | None = None,
153154
unstyled: Var[bool] | bool | None = None,
154155
style: Sequence[Mapping[str, Any]]

0 commit comments

Comments
 (0)