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
InfoBar

InfoBar

  • Design
  • Code
  • Props

Import statement

import { InfoBar } from "@wfp/react"

Usage

Editable Example

<InfoBar>This is important information.</InfoBar>;

In this example, the InfoBar displays a message "This is important information." with an optional custom CSS class custom-class, an id info-bar-id, and sets the page width for the inner Wrapper component to lg (large).

Editable Example

<InfoBar
  id="info-bar-id"
  className="custom-class"
  pageWidth="lg"
>
  This is important information.
</InfoBar>;

Notes

  • The component has an integrated <Wrapper /> to manage content width based on the screen size.

Reference

  • Wrapper

On this page

  • Usage
  • Notes
  • Reference

References

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