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
Hello React Spectrum Team,
I hope this message finds you well. I wanted to share a feature idea that I believe could enhance the React Spectrum library's capabilities.
Would it be possible to consider adding a Timestamp component (e.g., @react-spectrum/timestamp) to React Spectrum? This would display human-readable date and time with various formatting options and automatic updates.
Use Cases:
This component could be valuable in various scenarios, such as:
Activity logs (e.g., "May 3, 2025, 1:37 AM UTC").
Notifications (e.g., "In 10 seconds").
Comment timestamps (e.g., "9 minutes ago").
Event scheduling (e.g., "Tomorrow at 3:00 PM").
Usage Examples
`import { Timestamp } from '@react-spectrum/timestamp';
// Basic usage (auto variant, long format)
// Relative-only display
// Absolute display with time
`
This component would pair well with other date/time-related components in React Spectrum like DatePicker, enhancing the library's handling of temporal information.
Thank you for considering this feature request. I understand the React Spectrum team has many priorities, and I appreciate your time in reviewing this suggestion.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello React Spectrum Team,
I hope this message finds you well. I wanted to share a feature idea that I believe could enhance the React Spectrum library's capabilities.
Would it be possible to consider adding a Timestamp component (e.g., @react-spectrum/timestamp) to React Spectrum? This would display human-readable date and time with various formatting options and automatic updates.
Use Cases:
This component could be valuable in various scenarios, such as:
Usage Examples
`import { Timestamp } from '@react-spectrum/timestamp';
// Basic usage (auto variant, long format)
// Relative-only display
// Absolute display with time
`
This component would pair well with other date/time-related components in React Spectrum like DatePicker, enhancing the library's handling of temporal information.
Thank you for considering this feature request. I understand the React Spectrum team has many priorities, and I appreciate your time in reviewing this suggestion.
Beta Was this translation helpful? Give feedback.
All reactions