Skip to content

Vue installation guide

Installation

sh
$ npm install @zaptime/vue3
sh
$ pnpm add @zaptime/vue3
sh
$ yarn add @zaptime/vue3

Basic usage

  1. Import Component
  2. Crate Zaptime config
  3. Add your API key (Don't have API key? Create your Zaptime account to obtain API key)
  4. Import component CSS

Like follows:

vue
<template>
  <ZaptimeCalendar :config="config" />
</template>

<script setup lang="ts">
import { ZaptimeCalendar } from "@zaptime/vue3";
import type { ZaptimeConfig } from "@zaptime/vue3";

const config: ZaptimeConfig = {
  token: "<API_TOKEN>",
};
</script>

<style>
@import url("/node_modules/@zaptime/vue3/dist/style.css");
</style>