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

Defaults: CategoryNav

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

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

CategoryNav

A bar of the top-level categories, each with its subcategories in a dropdown and the current one marked.

CategoryNav(props: CategoryNavProps): ReactElement | null

Props: CategoryNavProps

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

export function CategoryBar() {
  return <CategoryNav className='border-t' />;
}

See also: useNavData, useMegaMenu

Last updated