Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Formulario - React Router DOM 6
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
@zassory
Copy link

zassory commented Nov 11, 2022

Gracias profesor.

@depo01
Copy link

depo01 commented Jan 6, 2023

grax...!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment