How to config container background #86
Answered
by
adamberecz
FeiPengDev
asked this question in
Questions
-
Beta Was this translation helpful? Give feedback.
Answered by
adamberecz
Oct 10, 2024
Replies: 1 comment
-
You can achieve something similar by adding classes to the Group/Object element in the renderer's // vueform.config.js
import { defineConfig } from '@vueform/vueform'
export default {
// ...
addClasses: {
GroupElement: {
container: 'bg-gray-200 bg-opacity-50 p-3 rounded',
},
ObjectElement: {
container: 'bg-gray-200 bg-opacity-50 p-3 rounded',
},
},
}; Demo: If this is not an option, because the renderer and the builder are in the same project, you can use presets on rendered forms. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FeiPengDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can achieve something similar by adding classes to the Group/Object element in the renderer's
vueform.config.js
:Demo:
https://stackblitz.com/edit/github-svqwqg?file=src%2FApp.vue,vueform.config.js
If this is not an option, because the renderer and the builder are in the same project, you can use presets on rendered forms.