-
Hi Team, I have a question about DateTimeRange component. I have a Figma design for Video Insights with a requirement to build custom DateTimeRange component. Previously in Console components, we had Advanced DateTimeRangeContainer component with such functionality. Is there a plan to provide such component in PASTE? Or a team should build a custom component per requirement? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hey @spatil32 - good question! We don't have a DateTime Picker in the system, just separate Date and Time Pickers. The current guidance is to display the two components next to each other to achieve the same result as an The Advanced DateTimeRangeContainer component you were previously using also has the quick-select options ( If that option doesn't suit your use case, feel free to build a custom solution using the Combobox Primitive. Either way, let us know what direction you end up choosing! |
Beta Was this translation helpful? Give feedback.
-
Hello @nkrantz , thank you for providing the detailed answer and sharing the code sandbox. I would build the component in a similar way with the |
Beta Was this translation helpful? Give feedback.
Hey @spatil32 - good question! We don't have a DateTime Picker in the system, just separate Date and Time Pickers. The current guidance is to display the two components next to each other to achieve the same result as an
<input type="datetime-local />
. For ranges, that would mean 4 separate components - a start Date Picker and Time Picker, and an end Date Picker and Time Picker. On the docs pages, you can find examples of date range and time range implementations - you would need to combine the two for a DateTime range.The Advanced DateTimeRangeContainer component you were previously using also has the quick-select options (
Last 6 hours
, etc.). That's another piece of functionality that …