<1 min read
SnippetConfigExtraParams
SnippetConfigExtraParams
Props
| Name | Description | Type | Default |
|---|---|---|---|
values | Dictionary | | |
excludedExtraParams | Array | (): Array => [ |
Examples
See how the snippet config is injected and passed to the SnippetConfigExtraParams component.
<template>
<Provider>
<SnippetConfigExtraParams />
</Provider>
</template>
<script setup>
import { SnippetConfigExtraParams } from '@empathyco/x-components/extra-params'
import { defineComponent, provide } from 'vue'
const Provider = defineComponent({
setup(_, { slots }) {
provide('snippetConfig', {
instance: 'demo',
lang: 'es',
warehouse: 1234,
})
return () => slots.default?.()
},
})
</script>