From db1b214c562299c4a05f09a34fdef1888baf1259 Mon Sep 17 00:00:00 2001 From: Manoj Bhat <99398172+Manojvbhat@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:17:38 +0530 Subject: [PATCH] Change the defalut direction of radio group (#4070). (#4146) - The default direction of radio groups is column. - Since most use cases are horizontal, change the default direction from column to row. --- reflex/components/radix/themes/components/radio_group.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/components/radix/themes/components/radio_group.py b/reflex/components/radix/themes/components/radio_group.py index 95d33033b79..a55ca3a413c 100644 --- a/reflex/components/radix/themes/components/radio_group.py +++ b/reflex/components/radix/themes/components/radio_group.py @@ -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") @@ -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")