@tiller-ds/formik-elements
Version:
Formik elements module of Tiller Design System
16 lines (15 loc) • 634 B
TypeScript
/// <reference types="react" />
import { UploadButtonProps, File } from "@tiller-ds/upload";
export declare type UploadButtonFieldProps<T extends File> = {
/**
* The accessor value for the component (for validation, fetching, etc.).
*/
name: string;
/**
* Controls whether the file upload is restricted to a single file.
* If set to true, only one file can be uploaded at a time.
* @default false
*/
singleFileUpload?: boolean;
} & UploadButtonProps<T>;
export default function UploadButtonField<T extends File>({ name, ...props }: UploadButtonFieldProps<T>): JSX.Element;