Skip to content
Components

Header

The topmost element displaying the screen title and optional design elements such as subtitle, avatar, and icon buttons. It helps users navigate the app and access key actions easily.

Features

When to use

The Header component sits at the top of every screen from Pleo’s mobile app. Use the Header component to provide content and actions related to a screen’s experience, such as navigation, screen titles, and actions.

Composition

Top and Title group are always used together.

1c053cae-7a66-8076-8ef9-cec7ff3e19f8.png

Top

The Top subcomponent provides key actions with icon buttons for navigating the app and disclosing interactions.

1c053cae-7a66-8062-8ab5-e6a5fe173ba0.png

Title group

The Title Group subcomponent helps users understand where in the app they are by providing text elements like a title.

Spacing

1c053cae-7a66-80f0-bedf-ef497b8d2c81.png

Behaviour

When scrolling, the Top subcomponent should stay fixed by default, revealing the Title to keep it always visible.

1c053cae-7a66-8081-a9ad-fc7574af632f.gif
Information:

The code version of the component still needs rework in order to handle the scroll behaviour out-of-the-box.

Examples

1c053cae-7a66-80a3-84c7-e2657fe16b04.png

Back Icon Button

Use a Back Icon Button within the Top subcomponent with to help users navigate between main and sub screens.

1c053cae-7a66-80aa-afa6-e5b1771cdac0.png

Avatar

Use an Avatar within the Top subcomponent to provide users with quick account-related actions.

1c053cae-7a66-805d-b200-e9e76848d309.png

Primary & Secondary Icon Buttons

Use Primary and Secondary Icon Buttons in the Top subcomponent for high-priority actions.

1c053cae-7a66-80ee-9f30-d06e8c494ea3.png

Tertiary Icon Buttons

Use Tertiary Icon Buttons for situations where we need to provide users with non-essential elements, such as supplementary information.

1c053cae-7a66-8080-9ff8-fd90c42d51df.png

Title at the Top

While scrolling, the Header should reveal a left-aligned Top Title to keep it visible.

1c053cae-7a66-803a-81e9-c08a8707679b.png

Empty Top

Use the Header with an empty Top for main app screens or experiences that don’t require navigation or extra actions.

If the screen needs to be scrollable, the Title should still appear at the top of the Header to remain visible while scrolling.

1c053cae-7a66-8001-9849-c437d6f14994.png

Title

Always use a title to provide screens with semantic hierarchy and clearly communicate to users which screen they are on.

1c053cae-7a66-8004-a7c2-dafbe65c813c.png

Subtitle

Only use a subtitles if a screen title is too little context for users to fully understand the experience.

Best practices

Use both Top and Title group subcomponents

Avoid using the Title group without the Top subcomponent (or vice-verse) to maintain a consistent layout across the app.

1c053cae-7a66-80c4-b1b6-f5c36590ea62.png

Use Titles for every screen

All screens should include a Title to ensure they carry a semantic hierarchy, and provide context to users about where in the app they’re in.

1c353cae-7a66-8070-88ef-c17b610192a0.png

Do not make the Title group subcomponent fixed on scroll

While scrolling, the Title group should follow the rest of the scrollable content.

1c353cae-7a66-80e5-9e4d-eedaf7b34921.gif

Do not use more than 3 Icon Buttons with Top’s far right

Use up to 3 Icon Buttons within Top’s far right.

1c353cae-7a66-8052-9dc1-ee0d984d6345.png

Do not use an Avatar and a Back Icon Button simultaneously

Use an Avatar, a Back Icon Button or no elements within Top’s far left.

1c053cae-7a66-80af-935c-eb83e67904d7.png

Content guidelines

Use clear and concise copy for Titles and Subtitles

Use up to 41 characters for the Title and 81 for the Subtitle.

1c053cae-7a66-808a-93dc-db89ee2685e6.png
  • Avatar: A graphical representation of a user or entity - usually a photo or initials.
  • Icon button: Enables users to control the visibility of other UI elements.
  • Screen template: A utility component for designers to create mobile app Figma UI designs.
Didn't find what you were looking for?
Edit this page