File Dropzone
v0.2.0TODO: Add component description.
Edit the code and the preview updates as you type. Every registry export is in scope — FileDropzone from this package, plus React hooks and every other component in the registry.
const BasicFileDropzone = () => { const [names, setNames] = useState<string[]>([]); return ( <> <FileDropzone onFiles={(files) => setNames(files.map((file) => file.name))} /> {names.length > 0 && <p>Chosen: {names.join(", ")}</p>} </> ); }; render(<BasicFileDropzone />);