Files
NapCatQQ/.pnpm-store/v3/files/57/81ac696fc12429d9674bb52b8a3cb657a14d2e3e280277836ad8e8e3f6bbc75fa4cde93de941018b0ac953e81a81c0862182e9795ccac5d36a5ea9ca52f445
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
471 B
Plaintext

import React, { createRef } from "react";
import Dropzone, { DropzoneRef } from "../../";
const ref = createRef<DropzoneRef>();
export const dropzone = (
<Dropzone ref={ref}>
{({ getRootProps, getInputProps }) => (
<div {...getRootProps()}>
<input {...getInputProps()} />
<p>Drop some files here.</p>
<button type="button" onClick={ref.current.open}>
Open file dialog
</button>
</div>
)}
</Dropzone>
);