Skip to content

Commit

Permalink
chore: update accept props
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Apr 8, 2024
1 parent 4eca35b commit d8aa7a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/file-uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
/**
* Accepted file types for the uploader.
* @type { [key: string]: string[]}
* @default undefined
* @default
* ```ts
* { "image/*": [] }
* ```
* @example accept={["image/png", "image/jpeg"]}
*/
accept?: DropzoneProps["accept"]
Expand Down Expand Up @@ -95,7 +98,7 @@ export function FileUploader(props: FileUploaderProps) {
onValueChange,
onUpload,
progresses,
accept,
accept = { "image/*": [] },
maxSize = 1024 * 1024 * 2,
maxFiles = 1,
multiple = false,
Expand Down

0 comments on commit d8aa7a3

Please sign in to comment.