useUploadOptions
Packageβ
Installationβ
- npm
- Yarn
- pnpm
npm install @rpldy/uploady
yarn add @rpldy/uploady
pnpm add @rpldy/uploady
Detailsβ
type useUploadOptions = (options?: CreateOptions) => CreateOptions;
- See: CreateOptions
Hook to set/get upload options.
Exampleβ
import { useUploadOptions } from "@rpldy/uploady";
const MyComponent = () => {
const options = useUploadOptions({ grouped: true, maxGroupSize: 3 });
//...
};