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.

Parts

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

Styling

All of Header Shop’s styles live in header-shop.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue

Built from

API reference

HeaderShop.vue

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

Props 17

PropTypeDefault
categoriesNavigationCategory[][]
pagesNavigationLink[][]
menuLabelstring—
sheetTitlestring—
featuredCtastring—
announcementstring''
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-shop 1 group

Recipe header-shop-announcement 1 group

Recipe header-shop-bar 1 group

Header Shop
State