Skip to content

Vue

Use @subnoto/embed-vue to render the signing UI in a Vue app. Pass the iframe token and optional host; the component builds the embed URL.

install.sh
pnpm add @subnoto/embed-vue
# or npm install @subnoto/embed-vue

Create the iframe token on your backend and pass it to the client. See Iframe token for the API.

SigningView.vue
<script setup lang="ts">
import { SignEmbed } from "@subnoto/embed-vue";
defineProps<{
iframeToken: string;
host?: string;
}>();
</script>
<template>
<div class="embed-container">
<SignEmbed
:token="iframeToken"
:host="host"
title="Subnoto signing"
/>
</div>
</template>
<style scoped>
.embed-container {
width: 100%;
height: 400px;
}
</style>

Pass token (required) and optionally host (default https://app.subnoto.com). Use a sized container so the iframe fills the space.