Formulario - React Router DOM 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Formulario = ({cliente}) => { | |
return ( | |
<> | |
<div className="mb-4"> | |
<label | |
className="text-gray-800" | |
htmlFor="nombre" | |
>Nombre:</label> | |
<input | |
id="nombre" | |
type="text" | |
className="mt-2 block w-full p-3 bg-gray-50" | |
placeholder="Nombre del Cliente" | |
name="nombre" | |
/> | |
</div> | |
<div className="mb-4"> | |
<label | |
className="text-gray-800" | |
htmlFor="empresa" | |
>Empresa:</label> | |
<input | |
id="empresa" | |
type="text" | |
className="mt-2 block w-full p-3 bg-gray-50" | |
placeholder="Empresa del Cliente" | |
name="empresa" | |
/> | |
</div> | |
<div className="mb-4"> | |
<label | |
className="text-gray-800" | |
htmlFor="email" | |
>E-mail:</label> | |
<input | |
id="email" | |
type="email" | |
className="mt-2 block w-full p-3 bg-gray-50" | |
placeholder="Email del Cliente" | |
name="email" | |
/> | |
</div> | |
<div className="mb-4"> | |
<label | |
className="text-gray-800" | |
htmlFor="telefono" | |
>Teléfono:</label> | |
<input | |
id="telefono" | |
type="tel" | |
className="mt-2 block w-full p-3 bg-gray-50" | |
placeholder="Teléfono del Cliente" | |
name="telefono" | |
/> | |
</div> | |
<div className="mb-4"> | |
<label | |
className="text-gray-800" | |
htmlFor="notas" | |
>Notas:</label> | |
<textarea | |
as="textarea" | |
id="notas" | |
type="text" | |
className="mt-2 block w-full p-3 bg-gray-50 h-40 align-self" | |
placeholder="Notas del Cliente" | |
name="notas" | |
/> | |
</div> | |
</> | |
) | |
} | |
export default Formulario |
grax...!
Gracias profesor.
gracias profe
gracias por la practicidad !
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gracias profesor.