Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeprins committed Feb 3, 2023
1 parent e17d8b1 commit 44bb909
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Pass the JWT you got from the Vault session to `@apideck/vue-file-picker`, call

```vue
<script setup lang="ts">
import { VueVault } from '@apideck/vue-file-picker';
import { FilePicker } from '@apideck/vue-file-picker';
const sessionJwt = 'REPLACE_WITH_SESSION_TOKEN';
Expand All @@ -35,13 +35,13 @@ function onSelect(file: File) {
<template>
<main>
<VueVault
<FilePicker
:token="sessionJwt"
:on-select="onSelect"
v-slot="filePickerProps"
>
<button @click="filePickerProps.open()">Open</button>
</VueVault>
</FilePicker>
</main>
</template>
```
Expand All @@ -50,7 +50,7 @@ If you want to get notified when the modal opens and closes, you can provide the

```vue
<script setup lang="ts">
import { VueVault } from '@apideck/vue-file-picker';
import { FilePicker } from '@apideck/vue-file-picker';
const sessionJwt = 'REPLACE_WITH_SESSION_TOKEN';
Expand All @@ -69,15 +69,15 @@ function onReady() {
<template>
<main>
<VueVault
<FilePicker
:token="sessionJwt"
:on-close="onClose"
:on-ready="onReady"
:on-select="onSelect"
v-slot="filePickerProps"
>
<button @click="filePickerProps.open()">Open</button>
</VueVault>
</FilePicker>
</main>
</template>
```
Expand Down

0 comments on commit 44bb909

Please sign in to comment.