Generates typed React upload button, dropzone, and uploader components for UploadThing.
// Source: https://github.com/pingdotgg/uploadthing | License: MIT | Copyright 2024 Ping Labs
// Provided via justclaw.it.com; keep this notice with the code.
import {
resolveMaybeUrlArg,
warnIfInvalidPeerDependency,
} from "@uploadthing/shared";
import { version as uploadthingClientVersion } from "uploadthing/client";
import type { FileRouter } from "uploadthing/types";
import { peerDependencies } from "../../package.json";
import type {
GenerateTypedHelpersOptions,
UploadthingComponentProps,
} from "../types";
import type { UploadButtonProps } from "./button";
import { UploadButton } from "./button";
import type { UploadDropzoneProps } from "./dropzone";
import { UploadDropzone } from "./dropzone";
import { Uploader } from "./uploader";
export { UploadButton, UploadDropzone, Up
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key