Skip to content

File Dialog

Reactive File Dialog.

🎬 Usage

<script>
    import {file_dialog} from "sveltecore"

    const { files, open, reset } = file_dialog()
</script>

👩‍💻API

Options

Name Description Type Default
multiple Allow multiple files to be selected boolean false
accept File types to accept string *

Returns

Name Description Type
files Array of selected files Readable<File[]>
open Open the file dialog () => void
reset Reset the file dialog () => void

🧪 Playground


Last update: 2022-11-13