فهرست منبع

default props comment for ReferenceLine (#4122)

Carlos 7 ماه پیش
والد
کامیت
cb4ff24dc0
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      reflex/components/recharts/cartesian.py
  2. 1 1
      reflex/components/recharts/cartesian.pyi

+ 1 - 1
reflex/components/recharts/cartesian.py

@@ -652,7 +652,7 @@ class ReferenceLine(Reference):
     # The color of the reference line.
     stroke: Var[Union[str, Color]]
 
-    # The width of the stroke.
+    # The width of the stroke. Default: 1
     stroke_width: Var[Union[str, int]]
 
     # Valid children components

+ 1 - 1
reflex/components/recharts/cartesian.pyi

@@ -1795,7 +1795,7 @@ class ReferenceLine(Reference):
             x: If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.
             y: If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.
             stroke: The color of the reference line.
-            stroke_width: The width of the stroke.
+            stroke_width: The width of the stroke. Default: 1
             segment: Array of endpoints in { x, y } format. These endpoints would be used to draw the ReferenceLine.
             x_axis_id: The id of x-axis which is corresponding to the data.
             y_axis_id: The id of y-axis which is corresponding to the data.