Skip to content

Commit 4fbce9d

Browse files
authored
Enhance button size options and update select component render prop type to Var[Component] (#7)
1 parent cc199a3 commit 4fbce9d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

reflex_ui/components/base/button.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
LiteralButtonVariant = Literal[
1313
"primary", "destructive", "outline", "secondary", "ghost", "link", "dark"
1414
]
15-
LiteralButtonSize = Literal["xs", "sm", "md", "lg", "icon"]
15+
LiteralButtonSize = Literal[
16+
"xs", "sm", "md", "lg", "xl", "icon-xs", "icon-sm", "icon-md", "icon-lg", "icon-xl"
17+
]
1618

1719
DEFAULT_CLASS_NAME = "inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:border disabled:border-secondary-4/80 disabled:bg-secondary-3 disabled:text-secondary-8 shrink-0 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 text-medium cursor-pointer box-border"
1820

reflex_ui/components/base/select.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class SelectPositioner(SelectBaseComponent):
193193
collision_avoidance: Var[str]
194194

195195
# The render prop
196-
render_: Component
196+
render_: Var[Component]
197197

198198
@classmethod
199199
def create(cls, *children, **props) -> Component:
@@ -208,7 +208,7 @@ class SelectPopup(SelectBaseComponent):
208208
tag = "Select.Popup"
209209

210210
# The render prop
211-
render_: Component
211+
render_: Var[Component]
212212

213213
@classmethod
214214
def create(cls, *children, **props) -> Component:

0 commit comments

Comments
 (0)