@brizy/ui
Version:
React elements in Brizy style
21 lines (20 loc) • 500 B
TypeScript
import { FieldsTheme } from "../../utils/getFieldsTheme";
export interface FileValue {
name: string;
source: string;
}
export interface UploadItem {
file: FileValue;
onRemove?: (file: FileValue) => void;
}
export interface Props {
size?: "large" | "middle" | "small";
disabled?: boolean;
required?: boolean;
accept?: string;
loading?: boolean;
onRemove?: (file: FileValue) => void;
onBlur?: () => void;
onFocus?: () => void;
theme?: FieldsTheme;
}