Simple file upload Svelte component.
https://s-file-load-khn1ohzvd-s-library.vercel.app/
This package is a Svelte library and is intended to be installed within a Svelte application or another library. For example, as described here, you can create a Svelte skeleton Svelte application using:
pnpm create svelte@latest my-app
(I prefer pnpm for the speed and disk space optimization, but the old good npm or yarn work just as well.)
Then install the component:
pnpm i s-file-load
<script lang="ts">
import { DropFile } from 's-file-load';
let content: string = ''; // content of the file(s) selected
</script>
<div class="test-container-content">
<DropFile boxSize="medium" theme="dark" showResult={true} />
</div>
bash npm create svelte@latest my-app