@dimah-s3/react
v1.5.9
Published
Headless React hooks for presigned S3 file uploads, downloads, and deletes
Maintainers
Readme
@dimah-s3/react
Headless React hooks for S3 upload, download, and delete flows.
Full documentation: s3.dimah.dev/docs/react · llms.txt
Install
pnpm add @dimah-s3/reactMinimal setup
import { createS3Client, useUpload } from "@dimah-s3/react";
export const s3Client = createS3Client();
// App root
<s3Client.Provider>{children}</s3Client.Provider>;
// In a component
const { open, getInputProps } = useUpload({
route: "uploads",
noDrag: true,
noClick: true,
noKeyboard: true,
});License
MIT
