nuxt-typeform

Embed Typeform surveys in your NuxtJS application
894 3
Install
npm install nuxt-typeform
Latest Version:0.0.1
License:MIT
Last Updated:May 27, 2020
Links: GitHub  ·  npm
Maintainer: jgmullor

nuxt-typeform

A NuxtJS wrapper for Typeform Embed SDK.

Installation

$ npm install --save nuxt-typeform # or yarn add

Setup

  • Install with
npm install --save nuxt-typeform
// or
yarn add nuxt-typeform
  • Add nuxt-typeform to modules section of nuxt.config.js
modules: [
    'nuxt-typeform',
]

Usage

<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')
        }
    }
}

Component Options

url (required)

typeform's URL (like: https://admin.typeform.com/to/PlBzgL)

hide-headers (optional)

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.

opacity (optional)

You can make your typeform's background totally transparent, or opaque. (For example, to have a video as a background)

button-text (optional)

The button text that appears on mobile in order to open the typeform.

on-submit (optional)

PRO+ accounts only Callback function that will be executed right after the typeform is successfully submitted.

Development

$ git clone https://github.com/jgmullor/nuxt-typeform.git
$ cd nuxt-typeform
$ npm

License

Code released under the MIT license.

Related Packages

@blokwise/dynamic

Load components initialized through @nuxt/components dyamically.

11,169 57
nuxt-logger

logger module for nuxtjs

9,387 4
@nujek/dynamic

Load components initialized through @nuxt/components dyamically.

604
@nuxt-hero-icons/outline

A set of free MIT-licensed high-quality SVG icons as Vue functional components.

5,626 4
nuxt-seo-meta

nuxtjs seo meta generator

1,378 43

Version History

Version Released License
0.0.1 MIT