Page:
Header component guideline config
Pages
Abstract layout template
Carousel Feedback Component Guideline
Category Highlight Section Guidelines
Footer component config guideline
Footer component guideline config
Guidelines for Component Design
Header component guideline config
Homepage Category Highlight Component Guidelines setup
Layout Template System Guidelines
Product Card config Guideline
VtBrand usage guideline
VtFeedbackCard component guideline
1
Header component guideline config
namds29 edited this page 2026-01-12 02:44:03 +00:00
Header — JSON Configuration Guide
This guide explains how to configure the Header block in config/nam.vibentec.design.json. It covers structure, keys, and typical edits without file line references.
Location
- Defined under
layoutinconfig/nam.vibentec.design.jsonas a top-levelHeaderobject. - Contains a
configblock (e.g.,sticky) and achildrenarray with header components.
Minimal Structure
{
"Header": {
"config": {
"sticky": true
},
"children": [
{ "Banner": { "config": { } } },
{ "Nav": { "config": { } } }
]
}
}
Config Keys
sticky: Boolean. Whentrue, the header stays fixed at the top.children: Array of components rendered in the header. Common entries areBannerandNav.
Banner (Top Bar)
Key fields:
variant: e.g.,"nav".className: styling of the bar.left/center/right: arrays to place child controls.- Left links:
Linkitems withlabel,href,className. - Center links:
Linkitems for promos or CTAs. - Right controls:
Dropdownfor currency andVtCountryCodeSelectfor region selector.
- Left links:
Example (add a left link):
{
"Link": {
"config": {
"label": "Neu",
"href": "/new",
"className": "text-[13px] flex items-center gap-1"
}
}
}
Place this inside Banner.config.left.
Nav (Main Navigation)
Key fields:
- Container
className: overall styling of the nav bar. - Left area:
- Logo:
src,alt,className, andobjectFitunderLogo.config. - Primary links:
Link.config.label/href. - Mega menus:
VtMegaMenu.config.navLabel.textand styling.
- Logo:
- Right area:
SearchInput.config.placeholder.AccountButton,Button(wishlist), andVtCartButtonicons and classes.
Example (change the logo):
{
"Logo": {
"config": {
"src": "/your-logo.svg",
"alt": "YourBrand",
"className": "h-full w-[180px] mr-4",
"objectFit": "contain"
}
}
}
Edit values under Logo.config.
Common Edits
- Toggle sticky header: set
"sticky"inHeader.config. - Change banner copy/links: edit
Link.config.label/hrefinBanner. - Update currency label or options: change
Dropdown.config.trigger.textanditems. - Adjust styles: modify
classNamestrings inBannerandNav. - Edit navigation links or mega menu labels: update
LinkandVtMegaMenuconfigs. - Replace header icons: update
iconfields inAccountButton,Button,VtCartButton.
Adding or Reordering Children
Header.childrenis an ordered array; earlier items render above/before later ones.- To add a new component, append an object with the component name and its
config:
{ "AnnouncementBar": { "config": { "text": "Free shipping over €50" } } }
- Move items within the array to change render order.
Tips
- Keep JSON valid (commas, braces, quotes). Use a formatter if needed.
- Follow existing class name patterns for consistent styling.
- Use
left/center/rightarrays to position child items withinBannerand similar components. - Icons referenced by name (e.g.,
"User","Heart","ShoppingCart") must exist in the icon set.
This guide explains the Header configuration so you can make precise edits quickly.