UNPKG

infinity-ui-elements

Version:

A React TypeScript component library with Tailwind CSS design system

38 lines 1.47 kB
import * as React from "react"; declare const fileInputVariants: (props?: ({ size?: "medium" | "large" | "small" | null | undefined; validationState?: "none" | "positive" | "negative" | null | undefined; isDisabled?: boolean | null | undefined; } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string; export interface FileInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> { label?: string; helperText?: string; errorText?: string; successText?: string; size?: "small" | "medium" | "large"; validationState?: "none" | "positive" | "negative"; isDisabled?: boolean; isRequired?: boolean; isOptional?: boolean; accept?: string; multiple?: boolean; maxSize?: number; value?: File | File[] | null; onChange?: (files: File | File[] | null) => void; containerClassName?: string; labelClassName?: string; inputClassName?: string; infoHeading?: string; infoDescription?: string; LinkComponent?: React.ReactNode; linkText?: string; linkHref?: string; onLinkClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void; buttonText?: string; placeholderText?: string; showClearButton?: boolean; onClear?: () => void; } declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLDivElement>>; export { FileInput, fileInputVariants }; //# sourceMappingURL=FileInput.d.ts.map