header-shop

Header Shop

Store header with an announcement bar, logo, a navigation slot, a search slot that sits inline on wide screens and behind a button that opens an overlay on phones, and account and cart actions.

States: Default, Focus

Parts

PartFileDoes
HeaderShopHeaderShop.vueShows an optional announcement, the logo, navigation, and search, account and cart buttons.

Styling

PartRecipe
HeaderShopheader-shop
HeaderShopheader-shop-announcement
HeaderShopheader-shop-bar
HeaderShoplogo

Install

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

npm packages
@lucide/vue

Built from

API reference

HeaderShop HeaderShop.vue

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

PropTypeDefault
categoriesNavigationCategory[][]
pagesNavigationLink[][]
menuLabelstring—
sheetTitlestring—
featuredCtastring—
announcementstring''
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-shopSets
base: header-shop 1 property
Recipe header-shop-announcementSets
base: header-shop-announcement 5 properties
Recipe header-shop-barSets
base: header-shop-bar 3 properties
Example
State