Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Last active July 12, 2024 19:17
Show Gist options
  • Save codigoconjuan/8398c01399370d8d6394bdfaa751e152 to your computer and use it in GitHub Desktop.
Save codigoconjuan/8398c01399370d8d6394bdfaa751e152 to your computer and use it in GitHub Desktop.
Formulario para Productos
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>
</>
)
}
@Nico235711
Copy link

gracias

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