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
Structure
Wrapper

Wrapper

  • Design
  • Code
  • Props

Wrapper

Editable Example

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

() => {
  return (
    <Wrapper>
      Democratic Republic of Congo (DRC), claiming
      countless lives and causing massive displacement.
    </Wrapper>
  );
};

PropDefaultDescriptionValue

pageWidth

"sm" |"md" |"lg" |"full" |"xs" |"narrow" |"narrower" |"narrowest"
–

Defines the width of the wrapper. Can be one of 'xs', 'sm', 'md', 'lg', 'full', 'narrow', 'narrower', or 'narrowest'.

mobilePageWidth

ScreenSize
–

Specifies the page width for mobile devices. It uses the ScreenSize type.

spacing

"md" |"xl"
–

Determines the spacing around the wrapper. Can be 'md' for medium or 'xl' for extra large.

background

"lighter" |"dark"
–

Sets the background theme. Can be 'lighter' for a light background or 'dark' for a dark background.

className

string
–

Additional CSS class names to be applied to the wrapper.

backgroundClassName

string
–

CSS class names specifically for the background of the wrapper.

backgroundStyle

CSSProperties
–

Custom CSS properties for the background styling.

On this page

  • Wrapper

References

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