{"id":46217,"library":"reflex-components-moment","title":"Reflex Moment Components","description":"A Reflex component library wrapping moment.js for date/time display. Current version 0.9.1, updated infrequently. Compatible with Reflex >=0.4.0.","status":"active","version":"0.9.1","language":"python","source_language":"en","source_url":"https://github.com/reflex-dev/reflex-components-moment","tags":["reflex","moment","date","time","components"],"install":[{"cmd":"pip install reflex-components-moment","lang":"bash","label":"latest"}],"dependencies":[{"reason":"peer dependency","package":"reflex","optional":false}],"imports":[{"wrong":"from reflex_moment import Moment","symbol":"Moment","correct":"from reflex_components_moment import Moment"},{"symbol":"MomentDelta","correct":"from reflex_components_moment import MomentDelta"},{"symbol":"moment","correct":"from reflex_components_moment import moment"}],"quickstart":{"code":"import reflex as rx\nfrom reflex_moment import Moment\n\ndef index() -> rx.Component:\n    return Moment(datetime='2023-01-01T00:00:00Z', format='MMMM Do YYYY, h:mm:ss a')\n\napp = rx.App()\napp.add_page(index)","lang":"python","description":"Displays a formatted date string using moment.js."},"warnings":[{"fix":"Use `from reflex_moment import Moment` instead of `from reflex_components_moment import Moment`.","message":"Import path is `reflex_moment`, not `reflex_components_moment`.","severity":"gotcha","affected_versions":"all"},{"fix":"Convert datetime to ISO string with `.isoformat()` before passing.","message":"Moment component requires a `datetime` prop that is a string; do not pass a Python datetime object.","severity":"breaking","affected_versions":">=0.9.0"},{"fix":"Consider using reflex-native date utilities or Luxon-based component.","message":"moment.js is in maintenance mode; newer versions may not be supported.","severity":"deprecated","affected_versions":"all"},{"fix":"Use moment tokens e.g., 'YYYY-MM-DD' not '%Y-%m-%d'.","message":"Format strings must adhere to moment.js tokens, not Python strftime.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.4.0':21 '0.9.1':15 'compat':18 'compon':3,6,26 'current':13 'date':24 'date/time':11 'display':12 'infrequ':17 'librari':7 'moment':2,23 'moment.js':9 'reflex':1,5,20,22 'time':25 'updat':16 'version':14 'wrap':8","created_at":"2026-06-07T12:58:51.260703+00:00","updated_at":"2026-06-07T12:58:51.260703+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}