Skip to content

Commit

Permalink
Change the defalut direction of radio group (#4070). (#4146)
Browse files Browse the repository at this point in the history
- The default direction of radio groups is column.
- Since most use cases are horizontal, change the default direction from
  column to row.
  • Loading branch information
Manojvbhat authored and simon committed Oct 23, 2024
1 parent b12619c commit db1b214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reflex/components/radix/themes/components/radio_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class HighLevelRadioGroup(RadixThemesComponent):
items: Var[List[str]]

# The direction of the radio group.
direction: Var[LiteralFlexDirection] = LiteralVar.create("column")
direction: Var[LiteralFlexDirection] = LiteralVar.create("row")

# The gap between the items of the radio group.
spacing: Var[LiteralSpacing] = LiteralVar.create("2")
Expand Down Expand Up @@ -137,7 +137,7 @@ def create(
Raises:
TypeError: If the type of items is invalid.
"""
direction = props.pop("direction", "column")
direction = props.pop("direction", "row")
spacing = props.pop("spacing", "2")
size = props.pop("size", "2")
variant = props.pop("variant", "classic")
Expand Down

0 comments on commit db1b214

Please sign in to comment.