Configuration
Use the form
key in your nuxt.config.ts
file to configure all options:
JS
export default defineNuxtConfig({
runtimeConfig: {
public: {
recaptchaSitekey: ''
}
},
form: {
recaptcha: false
hide_recaptcha: false
mask: true
default_styles: true
messages: object,
lang: 'en',
format_layers: []
}
}
Options
recaptchaSitekey
Set it to return the Recaptcha key if needed. It will automatically return the key located in the .env file.recaptcha
Set it totrue
if you use Recaptcha.hide_recaptcha
Hide the Recaptcha badge.mask
Enable input mask option. See Maskdefault_styles
Loads simple default styles for all components.messages
Overwrite default form messages. See Messageslang
:en|fr
Make a pull request with new language if neededformat_layers
List of layers if usingFormGenerator
. SeeModelFormatter