react-dropzone
Advanced tools
Comparing version 10.0.5 to 10.0.6
@@ -168,3 +168,3 @@ { | ||
}, | ||
"version": "10.0.5", | ||
"version": "10.0.6", | ||
"engines": { | ||
@@ -171,0 +171,0 @@ "node": ">= 8" |
import * as React from "react"; | ||
export default function Dropzone(props: DropzoneProps): JSX.Element; | ||
export default function Dropzone(props: DropzoneProps & React.RefAttributes<DropzoneRef>): JSX.Element; | ||
export function useDropzone(options?: DropzoneOptions): DropzoneState; | ||
@@ -25,3 +25,3 @@ | ||
export type DropzoneState = { | ||
export type DropzoneState = DropzoneRef & { | ||
isFocused: boolean; | ||
@@ -39,5 +39,8 @@ isDragActive: boolean; | ||
getInputProps(props?: DropzoneInputProps): DropzoneInputProps; | ||
open(): void; | ||
}; | ||
export interface DropzoneRef { | ||
open(): void; | ||
} | ||
export interface DropzoneRootProps extends React.HTMLAttributes<HTMLElement> { | ||
@@ -44,0 +47,0 @@ refKey?: string; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
312272
43
4395