Developers
Start building
Themes/Theme SDK/Modules/navigation/Defaults: MainNav

Defaults: MainNav

The defaults of @poltura/theme-sdk/navigation, MainNav to MainNav.

On this page
import { … } from '@poltura/theme-sdk/navigation';

The header's menu bar: the top-level links with their dropdowns or panels and the menu keyboard model.

MainNav(props: MainNavProps): ReactElement | null

Props: MainNavProps

import { MainNav } from '@poltura/theme-sdk/navigation';

export function HeaderMenu() {
  return <MainNav submenu='panel' openOn='click' />;
}

See also: useMenu, NavMenu

Last updated