@tiller-ds/formik-elements
Version:
Formik elements module of Tiller Design System
16 lines (15 loc) • 614 B
TypeScript
/// <reference types="react" />
import { DragZoneProps, File } from "@tiller-ds/upload";
export declare type DragZoneFieldProps<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;
} & DragZoneProps<T>;
export default function DragZoneField<T extends File>({ name, ...props }: DragZoneFieldProps<T>): JSX.Element;