navigation
Store menus, the category and page tree, mega menu panels and breadcrumb trails.
On this page
import { … } from '@poltura/theme-sdk/navigation';
| Name | What it is |
|---|
useMenu | A store menu with the links its categories and pages stand for already filled in. |
useNavData | The store's category tree and site pages, for menus a theme builds itself. |
useMegaMenu | One menu item's dropdown or mega panel: its open state and the props that give it the menu keyboard model. |
useNavProducts | The products a navigation panel shows: a category's most popular ones or a hand-picked list. |
| Name | What it is |
|---|
NavMenu | One menu item with a panel, where the theme draws the trigger and the panel and the part wires them. |
MenuColumns | Titled columns of links in a grid of up to three, such as the footer's; a link's children follow it in the same list. |
Breadcrumbs | A breadcrumb trail with the current page marked for assistive technology; nothing when it has no steps. |
NavProducts | A heading over product rows with a thumbnail and title each, for a menu panel; nothing while there is nothing to show. |
| Name | What it is |
|---|
MainNav | The header's menu bar: the top-level links with their dropdowns or panels and the menu keyboard model. |
MobileNav | The main menu as a stacked list whose items fold open to their children, for a mobile drawer. |
MegaMenu | The all-categories button with a two-pane panel: the top-level categories, and the subcategories of the one pointed at. |
CategoryNav | A bar of the top-level categories, each with its subcategories in a dropdown and the current one marked. |
| Name | What it is |
|---|
findCategory | Finds a category of the navigation tree by its id or by the path of its handles. |
Last updated