Framework Components

Vue

Integrate PichaFlow into your Vue and Nuxt applications.

The @pichaflow/vue package provides a reactive upload component.

Usage

<script setup>
import { PichaUpload } from '@pichaflow/vue';

const onUploadSuccess = (response) => {
  console.log('Uploaded:', response.url);
};
</script>

<template>
  <PichaUpload
    api-key="sk_live_..."
    :tags="['hero', 'banner']"
    @success="onUploadSuccess"
  />
</template>

Props

PropTypeDefaultDescription
apiKeystringRequiredYour PichaFlow Secret Key.
baseUrlstringhttps://api.pichaflow.comOptional API base URL.
tagsstring[][]Tags to apply to the upload.

Events

EventPayloadDescription
successUploadResponseFired when upload completes successfully.
erroranyFired on network or server errors.
progressnumberFired during upload progress updates.