/
MariaTsys
/
courseworkPP
Обзор
Документация
Войти
/
MariaTsys
/
courseworkPP
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/app/_components/mainPage/TextInput.tsx
30 строк
593 B
Maria
first_commit
09 май 2025, 12:17
09 май 2025, 12:17
af55308
Код
Авторство
О чём код?
"use client"; interface TextInputProps { label?: string; placeholder?: string; value: string; onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; type?: string; } export function TextInput({ label, placeholder, value, onChange, type = "text", }: TextInputProps) { return ( <div className="space-y-1"> {label && <label className="font-medium">{label}</label>} <input type={type} placeholder={placeholder} value={value} onChange={onChange} className="input input-bordered w-full" /> </div> ); }