/
vshmidt
/
label-studio
Обзор
Документация
Войти
/
vshmidt
/
label-studio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
web/apps/labelstudio/src/components/Form/Elements/TextArea/TextArea.jsx
23 строки
696 B
yyassi-heartex
chore: OPTIC-1154: biome linting tweaks (#6425)
22 окт 2024, 23:22
Не верифицирован
22 окт 2024, 23:22
7ed55c6
Код
Авторство
О чём код?
import { cn } from "../../../../utils/bem"; import { FormField } from "../../FormField"; import { default as Label } from "../Label/Label"; const TextArea = ({ label, className, validate, required, skip, labelProps, ...props }) => { const classList = [cn("textarea-ls"), className].join(" ").trim(); const input = ( <FormField label={label} name={props.name} validate={validate} required={required} skip={skip} {...props}> {(ref) => <textarea {...props} ref={ref} className={classList} />} </FormField> ); return label ? ( <Label {...(labelProps ?? {})} text={label} required={required}> {input} </Label> ) : ( input ); }; export default TextArea;