Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

346
Vistas
How to change formik <Field/> component's placeholder?

Basically I'm not able to make date input empty with Formik. I just want it to show nothing initially. This is what I've been dealing for hours.

 <Field
 name="date"
 type="date"
   className={`InformationForm__field text-[20px] lg:h-14 px-4 lg:py-4 py-3  outline- none 
                                           `}
                                            />

note: I've tried placeholder, giving empty string as initial value etc.

Anyone have idea?

about 4 years ago · Juan Pablo Isaza
3 Respuestas
Responde la pregunta

0

Yo can try below code

     <Field
       name="date"
       render={({ field, form: { isSubmitting } }) => (
           <input {...field} type="date" 
            placeholder="date" />
       )}
     />

Check this link for more info:- https://formik.org/docs/api/field#render

about 4 years ago · Juan Pablo Isaza Denunciar

0

Searching on docs I've found this prop initialValues, try that one.

Reference

about 4 years ago · Juan Pablo Isaza Denunciar

0

You can try this

 <Field
  name="date"
  type="date"
  placeholder=""
  className={`InformationForm__field text-[20px] lg:h-14 px-4 lg:py-4 py-3  outline- none`}
 />

Check this: Formik docs

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda