Skip to content

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.

PropTypeDefaultDescription
count*number—Product count shown beside the title.
titlestring"Products"Undocumented — add TSDoc to the prop in the library.
shareUrlstring"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.
defaultShareOpenbooleanfalseShare sheet open on mount — lifted so the open sheet is a static story.
shareOpenboolean—Controlled share-sheet state.
onShareOpenChange(open: boolean) => void—Undocumented — add TSDoc to the prop in the library.
defaultMenuOpenbooleanfalseOverflow menu open on mount.
menuOpenboolean—Undocumented — add TSDoc to the prop in the library.
onMenuOpenChange(open: boolean) => void—Undocumented — add TSDoc to the prop in the library.
actionsReactNode—Extra actions rendered to the left of the overflow trigger.
classNamestring—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.