BridgeBeta
  • Brand
  • Digital Assets
    Foundations
    Icons
    Components
    Templates
  • Resources
    Design Tokens
    How-tos
    Best Practices
    Libraries
    Accessibility
    Products List
  • Support
    • Overview
    • Actions
      • Overview
      • Button
      • ContextMenu
      • Link
    • Controls
      • Overview
      • Checkbox
      • Tag
      • Toggle
    • Forms
      • Overview
      • DatePicker
      • FileUploader
      • Input
      • NumberInput
      • RadioButton
      • Search
      • Select
      • Slider
      • TextArea
      • TextInput
    • Hooks
      • useIsomorphicLayoutEffect
      • useMediaQuery
      • useSettings
    • Navigation
      • Overview
      • AnchorNavigation
      • BannerNavigation
      • Breadcrumb
      • Footer
      • InfoBar
      • MainNavigation
      • SecondaryNavigation
      • StepNavigation
      • SubNavigation
    • Overlay
      • Overview
      • Credits
      • Modal
      • ModalWrapper
      • Notification
      • Tooltip
    • Structure
      • Overview
      • Accordion
      • AuthLayout
      • Avatar
      • Callout
      • Card
      • ContentSwitcher
      • Empty
      • Hero
      • InlineLoading
      • Item
      • List
      • Loading
      • mdxComponents
      • Module
      • Pagination
      • ReadMore
      • Story
      • Table
      • Tabs
      • Text
      • Unit
      • User
      • WFPCoreProvider
      • Wrapper
Components
Navigation
SecondaryNavigation

SecondaryNavigation

  • Design
  • Code
  • Props

Import statement

import { SecondaryNavigation, SecondaryNavigationTitle, BreadcrumbHome, BreadcrumbItem, Breadcrumb } from "@wfp/react"

SecondaryNavigation Component

The SecondaryNavigation component is used to display a page title and optionally, tab navigation. It provides a flexible way to structure the navigation elements and additional content in your application’s secondary navigation bar.

Example Usage

Expand code

Editable Example

import {
  SecondaryNavigation,
  SecondaryNavigationTitle,
  Breadcrumb,
  BreadcrumbItem,
  Tabs,
  Tab,
} from "@wfp/react";

<SecondaryNavigation additional="Additional">
  <Breadcrumb>
    <BreadcrumbItem>
      <a href="/#">
        <BreadcrumbHome />
      </a>
    </BreadcrumbItem>
    <BreadcrumbItem href="#">
      Breadcrumb 2
    </BreadcrumbItem>
    <BreadcrumbItem disableLink>
      Breadcrumb 3
    </BreadcrumbItem>
  </Breadcrumb>
  <SecondaryNavigationTitle>
    The page title
  </SecondaryNavigationTitle>
  <Tabs customTabContent={true}>
    <Tab label="Tab label 1" href="#" />
    <Tab label="Tab label 2" href="#" />
    <Tab label="Tab label 3" href="#" />
  </Tabs>
</SecondaryNavigation>;

This example shows a secondary navigation bar with a large page width and a title. You can add more elements as children to customize the navigation bar further.

SecondaryNavigationTitle Component

The SecondaryNavigationTitle component is used within the SecondaryNavigation to display the title of the page or section.

Example Usage

Editable Example

import { SecondaryNavigationTitle } from "@wfp/react";

<SecondaryNavigationTitle className="custom-class">
  Page Title
</SecondaryNavigationTitle>;

In this example, the SecondaryNavigationTitle component is used to render a page title with an additional custom class.

On this page

  • SecondaryNavigation Component
  • Example Usage
  • SecondaryNavigationTitle Component
  • Example Usage

References

  • Storybook
Storybook
Figma library
Contact us
2025 © World Food Programme