Components List Config
The components_list
array defines the configuration for a set of custom web components used within the application. This list includes both pre-packaged components from the GudHub Components Library and custom components specific to the project.
Structure of components_list
Predefined Components
The configuration starts by importing a predefined set of components from the GudHub Components Library.
Custom Components
Custom components are added as objects with the following properties:
Properties
Property Name | Type | Description |
---|---|---|
tag |
string |
A string representing the custom HTML tag for the component (e.g., 'consultation-form'). |
src |
string |
A string specifying the relative path to the JavaScript file that defines the component's functionality. |
import { components_list as GudHubComponents } from '@gudhub/ssg-web-components-library';
export const components_list = [
...GudHubComponents,
{
tag: 'string',
src: 'string',
}
];