Skip to content

Commit

Permalink
🏷️ Update TS typings
Browse files Browse the repository at this point in the history
Fixes #172
  • Loading branch information
Mattia Panzeri committed Jun 5, 2020
1 parent 0dde5ec commit 0e6585e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,23 @@ export type AlertType = 'error' | 'success' | 'info';

// DropzoneAreaBase

export type DropzoneAreaBaseClasses = {
/** CSS properties applied to the root Dropzone div */
root: React.CSSProperties;
/** CSS properties applied to the Dropzone when 'active' */
active: React.CSSProperties;
/** CSS properties applied to the Dropzone when 'invalid' */
invalid: React.CSSProperties;
/** CSS properties applied to the Dropzone text container div */
textContainer: React.CSSProperties;
/** CSS properties applied to the Dropzone text */
text: React.CSSProperties;
/** CSS properties applied to the Dropzone icon */
icon: React.CSSProperties;
};

export type DropzoneAreaBaseProps = {
classes?: Partial<DropzoneAreaBaseClasses>;
acceptedFiles?: string[];
fileObjects: FileObject[];
filesLimit?: number;
Expand Down

0 comments on commit 0e6585e

Please sign in to comment.