Config helper helps you to create some flexible config, so users can set some custom values in your theme from the admin panel, like logo, a text, a menu...
Example of usage:
// Location /src/config.js
import themeConfig from 'hiweb-theme-sdk/config';
// Global config
themeConfig.section('Global', null, section => {
// A custom text
section.config('example-custom-text').setLabel('Custom text').setDriver('text-input').default('Default text');
});
Then you can retrieve config value in your vue component:
<template>
<div>
{{ $themeConfig.getConfigValue('example-custom-text') }}
</div>
</template>