@yandex/ui
Version:
Yandex UI components
36 lines (35 loc) • 868 B
TypeScript
import { FC, MouseEventHandler } from 'react';
import '../Reset/Attach-Reset.css';
import '../IconFile/Attach-IconFile.css';
import './Attach-Holder.css';
export interface IHolderProps {
/**
* Дополнительный className
*/
className?: string;
/**
* Расширение файла
*/
fileExtension?: string;
/**
* Название файла
*/
fileName?: string;
/**
* ID Компонента
*/
id: string;
/**
* Обработчик вызываемый при нажатии на крестик
*/
onClearClick: MouseEventHandler<HTMLElement>;
/**
* Ширина текста
*/
textWidth?: number;
/**
* Текст, когда файл не выбран
*/
children?: string;
}
export declare const Holder: FC<IHolderProps>;