Jelajahi Sumber

Add comments to DataList components (#3827)

* fix: Adding missing comments to the data list

* fix: Ran make pyi
elvis kahoro 9 bulan lalu
induk
melakukan
a265fb4ae5

+ 5 - 0
reflex/components/radix/themes/components/data_list.py

@@ -29,6 +29,7 @@ class DataListItem(RadixThemesComponent):
 
     tag = "DataList.Item"
 
+    # The alignment of the data list item within its container.
     align: Var[Responsive[Literal["start", "center", "end", "baseline", "stretch"]]]
 
 
@@ -37,12 +38,16 @@ class DataListLabel(RadixThemesComponent):
 
     tag = "DataList.Label"
 
+    # The width of the component
     width: Var[Responsive[str]]
 
+    # The minimum width of the component
     min_width: Var[Responsive[str]]
 
+    # The maximum width of the component
     max_width: Var[Responsive[str]]
 
+    # The color scheme for the DataList component.
     color_scheme: Var[LiteralAccentColor]
 
 

+ 5 - 0
reflex/components/radix/themes/components/data_list.pyi

@@ -213,6 +213,7 @@ class DataListItem(RadixThemesComponent):
 
         Args:
             *children: Child components.
+            align: The alignment of the data list item within its container.
             style: The style of the component.
             key: A unique key for the component.
             id: The id for the component.
@@ -363,6 +364,10 @@ class DataListLabel(RadixThemesComponent):
 
         Args:
             *children: Child components.
+            width: The width of the component
+            min_width: The minimum width of the component
+            max_width: The maximum width of the component
+            color_scheme: The color scheme for the DataList component.
             style: The style of the component.
             key: A unique key for the component.
             id: The id for the component.