header-centered

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.

States: Default, Focus

Parts

PartFileDoes
HeaderCenteredHeaderCentered.vueShows the logo and navigation with search, account and cart buttons.

Styling

PartRecipe
HeaderCenteredheader-centered
HeaderCenteredheader-centered-logo
HeaderCenteredheader-centered-nav

Install

Writes 2 files into components/templates/header-centered/. For agents, npx @frontic/ui docs header-centered prints this reference as markdown; the MCP server serves the same.

npm packages
@lucide/vue

Built from

API reference

HeaderCentered HeaderCentered.vue

Shows the logo and navigation with search, account and cart buttons. Renders a <header>.

PropTypeDefault
categoriesNavigationCategory[][]
pagesNavigationLink[][]
menuLabelstring'Open menu'
sheetTitlestring—
featuredCtastring—
logoTextstring'STORE'
logoSrcstring''
homeHrefstring'/'
cartCountnumber0
searchLabelstring'Search'
accountLabelstring'Account'
cartLabelstring'Cart'
cartOverflowLabelstring'9+'
classClassValue—
menustring''
menuOpenbooleanfalse
EventPayload
search—
update:menuvalue: string
update:menuOpenvalue: boolean
account—
cart—
SlotSlot props
navigation{ categories: NavigationCategory[]; pages: NavigationLink[]; }
search{ presentation: "inline" | "overlay"; }
Recipe header-centeredSets
base: header-centered 4 properties
Recipe header-centered-navSets
base: header-centered-nav 2 properties
Example
State