Vue installation guide
Installation
sh
$ npm install @zaptime/vue3
sh
$ pnpm add @zaptime/vue3
sh
$ yarn add @zaptime/vue3
Basic usage
- Import Component
- Crate Zaptime config
- Add your API key (Don't have API key? Create your Zaptime account to obtain API key)
- 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>