File size: 723 Bytes
67ea2ab 93233eb 67ea2ab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import { Form } from "@/_types";
export const Description = ({
form,
setForm,
}: {
form: Form;
setForm: React.Dispatch<React.SetStateAction<Form>>;
}) => {
return (
<div className="w-full">
<label htmlFor="description" className="text-zinc-300 mb-1 block text-sm">
Short Description
</label>
<input
type="text"
id="description"
placeholder="A platform for building and sharing models"
value={form.description}
className="border bg-zinc-900 border-zinc-800 rounded-lg py-2 px-4 text-gray-200 outline-none w-full placeholder:text-gray-600"
onChange={(e) => setForm({ ...form, description: e.target.value })}
/>
</div>
);
};
|