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.

Parts

PartFileDoes
HeaderCenteredHeaderCentered.vueShows 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

HeaderCentered.vue

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

Props 16

PropTypeDefault
categoriesNavigationCategory[][]
pagesNavigationLink[][]
menuLabelstring'Open menu'
sheetTitlestring—
featuredCtastring—
logoTextstring'STORE'
logoSrcstring''
homeHrefstring'/'
cartCountnumber0
searchLabelstring'Search'
accountLabelstring'Account'
cartLabelstring'Cart'
cartOverflowLabelstring'9+'
classClassValue—
menustring''
menuOpenbooleanfalse

Events 5

EventPayload
search—
update:menuvalue: string
update:menuOpenvalue: boolean
account—
cart—

Slots 2

SlotSlot props
navigation{ categories: NavigationCategory[]; pages: NavigationLink[]; }
search{ presentation: "inline" | "overlay"; }

Recipe header-centered 1 group

Recipe header-centered-nav 1 group

Header Centered
State