OMikkel / tailwind-datepicker-react

A tailwindcss/flowbite datepicker component built as a react component with types
https://omikkel.github.io/tailwind-datepicker-react/
MIT License
160 stars 68 forks source link

How can we set a controlled value? #43

Closed tfmertz closed 1 year ago

tfmertz commented 1 year ago

For regular inputs you can turn it into a controlled input by adding a value prop so that you can change the input's value to whatever you'd like. Is that supported?

I don't really want to customize the input, just tell it what value I need when browsing through multiple different date items.

Is that possible?

Thanks!

mark-barrett commented 1 year ago

Opened PR for it: https://github.com/OMikkel/tailwind-datepicker-react/pull/44

OMikkel commented 1 year ago

Available in v1.4.3