Last active
July 12, 2024 19:17
-
-
Save codigoconjuan/8398c01399370d8d6394bdfaa751e152 to your computer and use it in GitHub Desktop.
Formulario para Productos
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
export default async function ProductForm() { | |
return ( | |
<> | |
<div className="space-y-2"> | |
<label | |
className="text-slate-800" | |
htmlFor="name" | |
>Nombre:</label> | |
<input | |
id="name" | |
type="text" | |
name="name" | |
className="block w-full p-3 bg-slate-100" | |
placeholder="Nombre Producto" | |
/> | |
</div> | |
<div className="space-y-2"> | |
<label | |
className="text-slate-800" | |
htmlFor="price" | |
>Precio:</label> | |
<input | |
id="price" | |
name="price" | |
className="block w-full p-3 bg-slate-100" | |
placeholder="Precio Producto" | |
/> | |
</div> | |
<div className="space-y-2"> | |
<label | |
className="text-slate-800" | |
htmlFor="categoryId" | |
>Categoría:</label> | |
<select | |
className="block w-full p-3 bg-slate-100" | |
id="categoryId" | |
name="categoryId" | |
> | |
<option value="">-- Seleccione --</option> | |
</select> | |
</div> | |
</> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gracias Profe