Store
Products header
Title and controls above a product grid.
Available
Ports as-is
Examples
Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.
Products header
Rendered live from Storybook
Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.
Props
The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.
| Prop | Type | Default | Description |
|---|---|---|---|
count* | number | — | Product count shown beside the title. |
title | string | "Products" | Undocumented — add TSDoc to the prop in the library. |
shareUrl | string | "https://behindthescenes.com/creator/products" | URL handed to "Copy URL" and to the share sheet. |
onCopyUrl | (url: string) => void | — | Undocumented — add TSDoc to the prop in the library. |
onSortByDate | () => void | — | Undocumented — add TSDoc to the prop in the library. |
onSortByPrice | () => void | — | Undocumented — add TSDoc to the prop in the library. |
defaultShareOpen | boolean | false | Share sheet open on mount — lifted so the open sheet is a static story. |
shareOpen | boolean | — | Controlled share-sheet state. |
onShareOpenChange | (open: boolean) => void | — | Undocumented — add TSDoc to the prop in the library. |
defaultMenuOpen | boolean | false | Overflow menu open on mount. |
menuOpen | boolean | — | Undocumented — add TSDoc to the prop in the library. |
onMenuOpenChange | (open: boolean) => void | — | Undocumented — add TSDoc to the prop in the library. |
actions | ReactNode | — | Extra actions rendered to the left of the overflow trigger. |
className | string | — | Undocumented — add TSDoc to the prop in the library. |
Reference
Transcribed from the component audit. If this disagrees with the source, the source is right.
- Source
src/components/store/ProductsHeader.tsx- Portability
- Copies across unchanged — only the utils import path moves.