Header Centered
Store header with a centred logo between a search slot (inline on wide screens, an overlay button on phones) and account and cart actions, over a full-width navigation slot.
Parts
| Part | File | Does |
|---|---|---|
| HeaderCentered | HeaderCentered.vue | Shows the logo and navigation with search, account and cart buttons. |
Styling
All of Header Centered’s styles live in header-centered.json. New to styling in Frontic UI? How styling works →
Install
- npm packages
- @lucide/vue
Built from
API reference
Shows the logo and navigation with search, account and cart buttons. Renders a <header>.
Props 16
| Prop | Type | Default | |
|---|---|---|---|
| categories | NavigationCategory[] | [] | |
| |||
| pages | NavigationLink[] | [] | |
| |||
| menuLabel | string | 'Open menu' | |
| |||
| sheetTitle | string | — | |
| |||
| featuredCta | string | — | |
| |||
| logoText | string | 'STORE' | |
| |||
| logoSrc | string | '' | |
| |||
| homeHref | string | '/' | |
| |||
| cartCount | number | 0 | |
| |||
| searchLabel | string | 'Search' | |
| |||
| accountLabel | string | 'Account' | |
| |||
| cartLabel | string | 'Cart' | |
| |||
| cartOverflowLabel | string | '9+' | |
| |||
| class | ClassValue | — | |
| |||
| menu | string | '' | |
| |||
| menuOpen | boolean | false | |
| |||
Events 5
| Event | Payload | |
|---|---|---|
| search | — | |
| ||
| update:menu | value: string | |
| ||
| update:menuOpen | value: boolean | |
| ||
| account | — | |
| ||
| cart | — | |
| ||
Slots 2
| Slot | Slot props | |
|---|---|---|
| navigation | { categories: NavigationCategory[]; pages: NavigationLink[]; } | |
| ||
| search | { presentation: "inline" | "overlay"; } | |
| ||