Minimal Store Header

Store header with centered mega menu: link-only columns, search and bag count, collapsing to a left Sheet with accordion categories on narrow screens. No announcement bar.

Installation

npx shadcn@latest add @01orbital/link-column-store-header

API reference

A one-row shop header with the logo, the store navigation and links for search and the bag. On wide screens the navigation sits in the middle, and each category opens a menu of text links: a two-column list under one heading and two smaller groups beside it. When the header is narrower than 64rem, a menu button opens a sheet from the left where each category folds open in an accordion.

The words live in COPY and the categories and links in NAVIGATION, at the top of the file. The links point to #.

Prop

Type

Make it yours

  • Its words are in COPY at the top of components/blocks/site-nav/link-column-store-header/index.tsx: change them there, not in the markup.
  • NAVIGATION, LINK, MUTED and ROW, also at the top of the file, hold its lists and settings.

Built from

npm: @phosphor-icons/react, cn. The CLI installs them for you.

Built from these parts. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

The shadcn parts here are their Base UI versions, and this piece uses Base UI's API. A Radix version you already have won't work with it.

Last updated on