Renders a time relative from the current time in human readable language.
You can play around with a Ui.RelativeTime below using the controls.
Ui.RelativeTime
<Ui.RelativeTime date={Time.from(2024, 12, 3)}/>
The date can be set with the date property.
date
<> <Ui.RelativeTime date={Time.utc(2021, 1, 1, 0, 0, 0, 0)}/> <Ui.RelativeTime date={Time.utc(2020, 1, 1, 0, 0, 0, 0)}/></>
Mint UI is a design system and component library for building websites, web and desktop applications.