import { Media } from "ui/elements"; import { Scrollable } from "ui/layouts/AppShell/AppShell"; export default function DropzoneElementTest() { return (
Dropzone no auto avif only Dropzone User Avatar 1 (fully customized)
Dropzone User Avatar 1 (overwrite)
Dropzone User Avatar 1
Dropzone Container blank w/ query
Dropzone Container blank
Dropzone Post 12
); } function CustomUserAvatarDropzone() { const { wrapperRef, inputProps, state: { files, isOver, isOverAccepted, showPlaceholder }, actions: { openFileInput } } = Media.useDropzone(); const file = files[0]; return (
{showPlaceholder && <>{isOver && isOverAccepted ? "let it drop" : "drop here"}} {file && ( )}
); }