A NuxtJS wrapper for Typeform Embed SDK.
$ npm install --save nuxt-typeform # or yarn add
- Install with
npm install --save nuxt-typeform
// or
yarn add nuxt-typeform
- Add
nuxt-typeform
tomodules
section ofnuxt.config.js
modules: [
'nuxt-typeform',
]
<Typeform
url="https://test.typeform.com/to/test"
:hide-headers="true"
:hide-footer="true"
:button-text="Send"
:opacity="0"
:on-submit="onSubmit"
/>
export default {
methods: {
...
onSubmit () {
console.log('Typeform successfully submitted')
}
}
}
typeform's URL (like: https://admin.typeform.com/to/PlBzgL)
Hide typeform header, that appears when you have a Question group, or a long question that you need to scroll through to answer, like a Multiple Choice block.
Hide typeform footer, that appears showing the progress bar and the navigation buttons.
You can make your typeform's background totally transparent, or opaque. (For example, to have a video as a background)
The button text that appears on mobile in order to open the typeform.
PRO+ accounts only Callback function that will be executed right after the typeform is successfully submitted.
$ git clone https://github.com/jgmullor/nuxt-typeform.git
$ cd nuxt-typeform
$ npm
Code released under the MIT license.