1. Install
Steps to integrate Velt into an existing app
Install React package
npm:
yarn:
Install types (optional)
If you’re using TypeScript, you can install the types package.
Grab your Velt API Key
Go to console.velt.dev and grab your Velt API Key
Safelist your domain
In the Velt console, add the URL where your app is deployed to the list of Managed Domains.
Add the VeltProvider
Add the VeltProvider component to the root of your app.
Add your Velt API key.
(Next.js only) Add 'use client' to your root component
Install React package
npm:
yarn:
Install types (optional)
If you’re using TypeScript, you can install the types package.
Grab your Velt API Key
Go to console.velt.dev and grab your Velt API Key
Safelist your domain
In the Velt console, add the URL where your app is deployed to the list of Managed Domains.
Add the VeltProvider
Add the VeltProvider component to the root of your app.
Add your Velt API key.
(Next.js only) Add 'use client' to your root component
React / Next.js with Hooks
for a cleaner experience.Install React package
npm:
yarn:
Install types (optional)
If you’re using TypeScript, you can install the types package.
Grab your Velt API Key
Go to console.velt.dev and grab your Velt API Key
Safelist your domain
In the Velt console, add the URL where your app is deployed to the list of Managed Domains.
Add the VeltProvider
Add the VeltProvider component to the root of your app.
Add your Velt API key.
(Next.js only) Add 'use client' to your root component
Grab your Velt API Key
Go to console.velt.dev and grab your Velt API Key
Safelist your domain
In the Velt console, add the URL where your app is deployed to the list of Managed Domains.
Import the Velt Script tag
Initialize with your API Key
Put this in your root app script:
Install client library
Install types library (optional)
If you are using Typescript, install the types library:
Grab your Velt API Key
Go to console.velt.dev and grab your Velt API Key
Safelist your domain
In the Velt console, add the URL where your app is deployed to the list of Managed Domains.
Add Custom Elements Schema in App Module
Add schemas: [CUSTOM_ELEMENTS_SCHEMA]
to your App Module:
Get the Velt Client
Install client library
Install types library (optional)
If you are using Typescript, install the types library:
Grab your Velt API Key
Go to console.velt.dev and grab your Velt API Key
Safelist your domain
In the Velt console, add the URL where your app is deployed to the list of Managed Domains.
Allow Velt Elements in Main.js
In main.js, add the following code to allow Velt elements in your Vue app:
Get the Velt Client
Was this page helpful?