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

AuthLayout

The AuthLayout component is used to display a form in a layout with a background image or content.

It is used in the login, register pages and transactional content without much content.

TODO: Write documentation

Expand code

Editable Example

<AuthLayout
  backgroundContent={
    <BackgroundContent
      style={{
        background: "#007DBC",
        color: "#fff",
        padding: "3rem",
      }}
    >
      Image can be placed here or just give a
      background with content like this
    </BackgroundContent>
  }
>
  <div>Forms will be here</div>
</AuthLayout>;

<AuthLayout {...args}>
<FormGroup style={{ width: "80%" }}>
<Button
icon={ArrowLeft}
iconReverse
kind="secondary"
style={{ marginBottom: "3rem" }}
>
Back to lorem
</Button>
<TextInput
labelText="The labelText"
name="inputname"
placeholder="placeholder"
/>
<TextInput
labelText="The labelText"
name="inputname"
placeholder="placeholder"
/>
<div
style={{
display: "flex",
justifyContent: "flex-end",
alignItems: "center",
}}
>
<Link href="https://www.wfp.org">Another link</Link>
<Button kind="primary" style={{ marginLeft: "2rem" }}>
Register
</Button>
</div>
</FormGroup>
</AuthLayout>
<BackgroundContent
style={{
background: "linear-gradient(0.13deg, #357DB6 0.17%, #5DB2C2 99.95%)",
color: "#fff",
padding: "3rem",
}}
>
<WfpLogoStandardBlackEn
description="WFP"
fill="#fff"
style={{ marginBottom: "4rem" }}
/>
<Text kind="h1">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr,diam nonumy eirmod.
</Text>
<p style={{ marginTop: "2rem" }}>- Author</p>
</BackgroundContent>
export const WithImage = (args) => (
<AuthLayout {...args}>
<FormGroup style={{ width: '80%' }}>
<Button
icon={ArrowLeft}
iconReverse
kind="secondary"
style={{ marginBottom: '3rem' }}>
Back to lorem
</Button>
<TextInput
labelText="The labelText"
name="inputname"
placeholder="placeholder"
/>
<TextInput
labelText="The labelText"
name="inputname"
placeholder="placeholder"
/>
<div
style={{
display: 'flex',
justifyContent: 'flex-end',
alignItems: 'center',
}}>
<Link href="https://www.wfp.org">Another link</Link>
<Button kind="primary" style={{ marginLeft: '2rem' }}>
Register
</Button>
</div>
</FormGroup>
</AuthLayout>
);
WithImage.args = {
image: 'http://www1.wfp.org/sites/default/files/images/yemen-hero-min.jpg',
};
Storybook
Figma library
Contact us
2025 © World Food Programme