/
vshmidt
/
label-studio
Обзор
Документация
Войти
/
vshmidt
/
label-studio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
web/apps/labelstudio/src/components/Form/Elements/Input/Input.jsx
45 строк
935 B
Raul Martin
feat: Migrate SCSS to plain CSS with PostCSS, replace Stylelint with Biome (#9584)
12 мар 2026, 20:57
Не верифицирован
12 мар 2026, 20:57
3f31128
Код
Авторство
О чём код?
import { cn } from "../../../../utils/bem"; import { FormField } from "../../FormField"; import { default as Label } from "../Label/Label"; import "./Input.prefix.css"; const Input = ({ label, description, footer, className, validate, required, skip, labelProps, ghost, tooltip, tooltipIcon, ...props }) => { const classList = [cn("input-ls").mod({ ghost }), className].join(" ").trim(); const input = ( <FormField label={label} name={props.name} validate={validate} required={required} skip={skip} {...props}> {(ref) => <input {...props} ref={ref} className={classList} />} </FormField> ); return label ? ( <Label {...(labelProps ?? {})} description={description} footer={footer} text={label} tooltip={tooltip} tooltipIcon={tooltipIcon} required={required} > {input} </Label> ) : ( input ); }; export default Input;