Skip to content

How to config container background #86

Discussion options

You must be logged in to vote

You can achieve something similar by adding classes to the Group/Object element in the renderer's vueform.config.js:

// 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:
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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FeiPengDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants