/
DevMaster
/
my_cv
Обзор
Документация
Войти
/
DevMaster
/
my_cv
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/components/reusable/FormInput.jsx
33 строки
755 B
hubol01
first commit
13 окт 2024, 23:52
13 окт 2024, 23:52
3153ceb
Код
Авторство
О чём код?
import React from 'react'; const FormInput = ({ inputLabel, labelFor, inputType, inputId, inputName, placeholderText, ariaLabelName, }) => { return ( <div className="font-general-regular mb-4"> <label className="block text-lg text-primary-dark dark:text-primary-light mb-1" htmlFor={labelFor} > {inputLabel} </label> <input className="w-full px-5 py-2 border border-gray-300 dark:border-primary-dark border-opacity-50 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md" type={inputType} id={inputId} name={inputName} placeholder={placeholderText} aria-label={ariaLabelName} required /> </div> ); }; export default FormInput;