Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudsponge-vue

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudsponge-vue

Vue component to launch the CloudSponge address book

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

CloudSponge for Vue 3

Installation

CloudSponge Vue can be installed using the following methods:

yarn add cloudsponge-vue

or

npm i --save cloudsponge-vue

Props

  • apiKey
    • CloudSponge API Key
    • https://www.cloudsponge.com/developer/getting-started/
  • afterSubmit
    • Callback function when contacts have been submitted
  • config

Usage

Install as component

import { createApp } from 'vue';
import { CloudspongeVue } from 'cloudsponge-vue';

const app = createApp({});

app.component('cloudsponge-vue', CloudspongeVue);
app.mount('#app');

Install as plugin

import { createApp } from 'vue';
import { CloudspongeVuePlugin } from 'cloudsponge-vue';

const app = createApp({});
CloudspongeVuePlugin.install(app);
app.mount('#app');

Usage

<template>
  <div>
    <CloudspongeVue apiKey="my-api-key" :afterSubmit="submittedContacts">
      <template v-slot:loading>
        <button>Loading...</button>
      </template>
      <template v-slot:body>
        <button>Add friends from your contacts</button>
      </template>
    </CloudspongeVue>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({
  name: 'MyComponent',
  methods: {
    submittedContacts(contacts) {
      console.log('CloudSponge: submitted contacts');
      const emails = contacts.map((c) => c.selectedEmail());
    }
  }
});
</script>

FAQs

Package last updated on 19 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc