plugin-file
v1.0.0
Published
File picker for leva
Downloads
2
Readme
File picker for leva
API
pluginFile({
onChange: (file: File) => void,
accept?: string,
})
import { pluginFile } from "plugin-file";
function onChange(file: File) {
// do something with file
}
const controls = useControls({
File: pluginFile({ onChange }),
});