Registry / devops / reflex-components-moment

reflex-components-moment

JSON →
library0.9.1pypypi✓ verified 83d ago

A Reflex component library wrapping moment.js for date/time display. Current version 0.9.1, updated infrequently. Compatible with Reflex >=0.4.0.

pip install reflex-components-moment
INSTALL
IMPORT
SIG · REFLEX-COMPONENTS-
R
reflex-components-moment
devopspythonv0.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Moment
✓ from reflex_components_moment import Moment
✗ from reflex_moment import Moment
MomentDelta
✓ from reflex_components_moment import MomentDelta
moment
✓ from reflex_components_moment import moment

Displays a formatted date string using moment.js.

import reflex as rx from reflex_moment import Moment def index() -> rx.Component: return Moment(datetime='2023-01-01T00:00:00Z', format='MMMM Do YYYY, h:mm:ss a') app = rx.App() app.add_page(index)
Debug
Known issues
gotchaImport path is `reflex_moment`, not `reflex_components_moment`.
fix
Use `from reflex_moment import Moment` instead of `from reflex_components_moment import Moment`.
affects: all
breakingMoment component requires a `datetime` prop that is a string; do not pass a Python datetime object.
fix
Convert datetime to ISO string with `.isoformat()` before passing.
affects: >=0.9.0
deprecatedmoment.js is in maintenance mode; newer versions may not be supported.
fix
Consider using reflex-native date utilities or Luxon-based component.
affects: all
gotchaFormat strings must adhere to moment.js tokens, not Python strftime.
fix
Use moment tokens e.g., 'YYYY-MM-DD' not '%Y-%m-%d'.
affects: all
Upgrade
Version history
0.9.1latest on PyPI · released Apr 27, 2026
Audit
Dependencies
reflexrequiredpeer dependency
Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

reflex-components-moment — pip install reflex-components-moment · libregistry