Skip to main content

Svelte

If you are using Svelte as a direct script include, please go here.

If you are using Svelte as a SPA or with a Svelte framework (Sapper) use the instructions below. Replace the value for id with the parameter in your wall url https://app.vouchpanel.com/walls/[id].

Install with yarn (or npm install):

yarn add @vouchpanel/svelte

Include it as a module. Replace id with your wall id from app.vouchpanel.com.

// Component.svelte
<script>
import Wall from '@vouchpanel/svelte/dist/index'
</script>
<Wall id="4" darkMode="off"></Wall>

Props#

nametypedefaultdescription
idstringrequiredThe id of the wall to display
darkModeoff, onoffWhether to display the element in dark mode