Using Next js and Next Ui input element with type="date"
the way I'm using, it will result a text/placeholder of dd/mm/yyyy over the label! as shown below:
My component code is simple and straightforward like this:
<Input
isRequired
type="date"
label="Date of Birth"
className=""
variant="bordered"
size="md"
radius="sm"
description=""
placeholder=""
/>
I've tried to remove it by adding placeholder=""
or trying some classes in ClassName
but it never worked.
any idea how to remove/hide dd/mm/yyyy placeholder?
I haven't found a way to fix this component the way you want it to be. But this is another idea: Start with a text input field, then change the type to a date input when the input is in focus.
See https://stackoverflow.com/a/20343152/16477430