ui icon indicating copy to clipboard operation
ui copied to clipboard

number or date value handling on react-hook-form forms

Open Toavina23 opened this issue 2 years ago • 1 comments

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

Toavina23 avatar Jun 19 '23 12:06 Toavina23

Check the datepicker component for the date values.

dan5py avatar Jun 19 '23 14:06 dan5py

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?

CesarQD98 avatar May 22 '24 19:05 CesarQD98

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.

shadcn avatar Jun 23 '24 23:06 shadcn