ui
ui copied to clipboard
number or date value handling on react-hook-form forms
I want to know how to handle number or date values on react-hook-form controller value where the valueAsNumber/Date option is not available
Check the datepicker component for the date values.
I wonder how to manage input fields by using the <Input> shadcn ui component for a type='date' mixed with the <Form> component and its anatomy. From what I see, default RHF usage (register) with native HTML elements provide a prop named valueAsDate for inputs that expect a Date value. Is there a way to use this prop in shadcn ui <Form> proposal?
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.