You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reflex/components/moment/moment.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ class Moment(NoSSRComponent):
29
29
30
30
tag: str|None="Moment"
31
31
is_default=True
32
-
library: str|None="react-moment@1.2.0"
32
+
library: str|None="react-moment@1.2.2"
33
33
lib_dependencies: list[str] = ["moment@2.30.1"]
34
34
35
35
# How often the date update (how often time update / 0 to disable).
@@ -53,6 +53,9 @@ class Moment(NoSSRComponent):
53
53
# Displays the date as the time from now, e.g. "5 minutes ago".
54
54
from_now: Var[bool]
55
55
56
+
# Displays the relative time in a short format using abbreviated units (e.g., "1h", "2d", "3mo", "1y" instead of "1 hour ago", "2 days ago", etc.).
57
+
from_now_short: Var[bool]
58
+
56
59
# Setting fromNowDuring will display the relative time as with fromNow but just during its value in milliseconds, after that format will be used instead.
0 commit comments