Types: MegaMenuProps to NavProductsProps
The types of @poltura/theme-sdk/navigation, MegaMenuProps to NavProductsProps.
Ezen az oldalon
import { … } from '@poltura/theme-sdk/navigation';MegaMenuProps
Props of MegaMenu.
labelstringThe button's text; defaults to the store's wording for all categories.
openOn'hover' | 'click'Whether the panel opens on hover or on click; defaults to hover.
classNamestringClasses added to the menu.
CategoryNavProps
Props of CategoryNav.
openOn'hover' | 'click'Whether a category's subcategories open on hover or on click; defaults to hover.
classNamestringClasses added to the bar.
MenuColumnsClasses
Class names for the pieces of MenuColumns.
columnstringEach column.
headingstringEach column's heading.
liststringEach column's list.
linkstringEach link.
MenuColumnsProps
Props of MenuColumns.
columnsrequiredreadonly MenuColumn[]The columns, in order.
classNamestringClasses added to the grid.
classesMenuColumnsClassesClasses added to the pieces.
BreadcrumbsProps
Props of Breadcrumbs.
itemsrequiredreadonly BreadcrumbItem[]The steps from the top down; the last one without a link is the current page.
separator'chevron' | 'slash'The mark between the steps; defaults to a chevron.
classNamestringClasses added to the trail.
NavProductsBy
Which products a navigation panel shows.
type NavProductsBy = {
readonly categoryId: string;
readonly limit?: number;
} | {
readonly handles: readonly string[];
}NavProductsClasses
Class names for the pieces of NavProducts.
rootstringThe panel.
headingstringThe heading.
rowstringEach product row.
thumbFramestring | nullThe frame around a thumbnail; null draws the thumbnail bare.
thumbstringThe thumbnail.
titlestringEach product's title.
NavProductsProps
Props of NavProducts.
byrequiredNavProductsByWhich products to show.
headingstringA heading over the rows; none by default.
classesNavProductsClassesClasses added to the pieces.