Skip to main content
In this guide, you embed the sajn signing page in a Vue app with the @sajn/embed-vue package. The @sajn/embed-vue package provides a Vue 3 component for embedding the signing experience.

Before you begin

  • Turn on embedding for your organization and add your domain to the allowlist. For more information, see Embedded signing.
  • On your server, create the document and read the party’s token from the signingUrl that GET /api/v1/documents/DOCUMENT_ID/parties/PARTY_ID returns. For the steps, see Embed the signing page. Never call the sajn API from the browser, because the request needs your API key.

Requirements

  • Vue 3.3.0+

Installation

Component

Import

Props

Events

Basic example

Example with every prop

TypeScript types

The package exports all types:

SignerCompletedData

SignerRejectedData

CssVars

Nuxt

The component works with Nuxt 3 projects:

Styling

The component renders an iframe that fills its container. Set dimensions on the parent element:
The iframe has no border by default and is set to width: 100% and height: 100%.

View a signed document

The package also includes EmbedViewDocument for displaying signed documents in read-only mode.

Import

Props

Events

Example

Next steps

Embedded signing

See the shared options, events, and security model.

Embed signing in your app

Run the whole flow from server to iframe.