@daniesy/finder
v0.0.8
Published
[](https://github.com/daniesy/finder/actions/workflows/npm-publish.yml)
Readme
Finder
A file selector Vue 3 component
Installation
npm install @daniesy/finderUsage
<template>
<Finder
endpoint="https://vault.test/api"
auth="..."
/>
<button @click.prevent="handleClick">Pick a file</button>
</template>
<script setup>
import { pick, Finder } from '@daniesy/finder';
const handleClick = async () => {
try {
const fileUrl = await pick();
} catch () {
console.error("Cancelled");
}
}
</script>