Replies: 1 comment
-
Absolutely! Here's a very simple example for <!-- CustomElement.vue -->
<template>
<ElementLayout>
<template #element>
<v-text-field
v-model="model"
:label="label"
clearable
></v-text-field>
</template>
<!-- Default element slots -->
<template v-for="(component, slot) in elementSlots" #[slot]><slot :name="slot" :el$="el$"><component :is="component" :el$="el$"/></slot></template>
</ElementLayout>
</template>
<script>
import { defineElement } from '@vueform/vueform'
export default defineElement({
name: 'VTextElement',
})
</script> More info on creating custom elements: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've read that it's possible to define custom elements here as well, my question is, if that element/component uses styles and logic from another tool like vuetify, can I use it here?
Beta Was this translation helpful? Give feedback.
All reactions