How To Create A Date-Time Input (Datetime-Local) #reactjs #reactdevelopment #webdev #webdevelopment

preview_player
Показать описание
How to use the datetime-local input, including how to set the current date and how to disable past dates.

📣 Follow Coding in Flow on social media:
Рекомендации по теме
Комментарии
Автор

Back here 10 months later to fix my own problems

codinginflow
Автор

Does not work as intended in FF and Safari, as they do not show time picker. Also Safari uses placeholder value in the same color as if it was set. Not to mention you can't choose how datetime is displayed in the input. Better steer away from this and use JS alternative. It will give you more issues than it fixes.

RipazX
Автор

My question is how to style the date input using tailwind css for dark and light mode if you know any resource please make a video Thanks

saurabhu
Автор

Can we use native components? Dose it work on all browsers, accessabilty?,
Or should only use headless or styled libraries? Because some times i didnt find what i need in them, like the one you did i need it put i cant find it in headless
Thank you

yazann
join shbcf.ru