Generic selectors

Exact matches only

Search in title

Search in content

Post Type Selectors

Top Bar

The Top Bar is a top-anchored component that provides context for the screen and facilitates easy navigation through different flows. Users depend on this Top Bar to navigate and orient themselves within your UI, and this pattern highlights the qualities that make a Top Bar consistent, familiar, and user-friendly.

topbar_dummy
  • Overview
  • Specs
  • Guidelines

Pattern

The Top Bar is a vital component of a product’s user interface, providing a stable and accessible area for both product-specific and system-wide features. Like the Menu Bar in macOS or the Start Bar in Windows, it offers a reliable place for local navigation and quick access to universal features like system settings, notifications, and cross-product navigation.

This pattern details the basics of using Compose components for both internal and cross-product navigation and offers strategies for maintaining consistency across various products.

Top Bar Anatomy
  • 1: Main Menu
  • 2: Header Name
  • 3: Search
  • 4: Selector
  • 5: Utilities
Top Bar Applied to a Product

Used for:

Consistent navigation

You want to provide a consistent navigation experience across all pages of your app or website.

Access to key features

You need a space for essential features like search, notifications, user profile, or settings.

Branding

You want to prominently display your brand’s logo or name.

Global utilities

You need a fixed place for global utilities that users can access from any page, such as help or account management.

Don’t use for:

Context-specific actions

The primary actions are highly context-specific and vary significantly from page to page, making a Top Bar less useful.

Simple single-page apps

Your app or website is a simple single-page application with minimal navigation needs.

Single-purpose tools

Tools designed for a single, focused task (e.g. calculators, timers) typically don’t benefit from a Top Bar since navigation is minimal or non-existent.

topbar_usage_dont2
Top Bar with Context Specific Actions

Demo

Access the Figma file and inspect the element using Dev Mode.

Top Bar Pattern in Figma

Related

Search

A Search component enhances user experience by enabling quick, intuitive, and refined information retrieval …

Usage

The Top Bar plays a key role in enhancing the user experience. It is always placed at the top, which means it is highly visible. It is also present on every page of the product.

This means it can enhance branding while also providing users with quick access to frequently used features, making it a key element for navigation.

For these reasons, the Top Bar is applied to most products, as also mentioned in the Overview. Consequently, there are universal elements that are expected to be found in it.

Main Menu

This element helps users access items in the sidebar. It is especially important in smaller interfaces where items are hidden or collapsed.

Main Menu Behavior

Header Name

The header name has the Cegid logo, followed by the product name. It should exclusively link users to the home page.

Header Name Behavior

Search

The search bar allows users to quickly find pages or items in a product. It should provide a list of suggestions as users type.

Search Suggestions

Selector

Some products allow users to manage several subscriptions or companies. The selector allows for quick switching without having to log out or go through the account settings.

Switching Companies and Subscriptions Using the Selector

Utilities

The remaining space can be used to implement other product-related actions users are expected to access frequently. Some common examples are:

Switcher – used to redirect users to other related Cegid products or systems. If the list is manageable, it should include every app or product available on the system.

Cegid Pulse – opens the Cegid Pulse chat, which allows users to quicky get support.

Notifications – where users check the notifications for the product they are using, usually through a flyout.

User Area – typically represented by an avatar, this section gives users access to product settings, account and subscription management, and may also include links to helpful resources such as the Help Center.

Common Utilities

When incorporating additional actions in the Top Bar, make sure it remains organized and uncluttered.

Change the icons used in the Top Bar.

Use the Top Bar for page-specific functions.

Adjust the elements’ layout and visibility based on screen size.

Related

Importance of Non-Productive Environments on Products

Understand how non-productive environments influence product development, fostering creativity, innovation, and improved problem-solving …

Spacing

Structure

Top Bar overall struture spacings

Apps menu

Top Bar apps spacing

User profile

User profile menu paddings

States

Icons

Topbar icons states
Enabled
.enable{ncolor: var(u002du002dGreys-Grey-8);n}
Hover
.hover{ncolor: var(u002du002dGreys-Grey-9);nborder-radius: var(u002du002dBorder-Radius-rounded);nbackground: var(u002du002dTheme-Theme-10);n}
Pressed
.pressed{ncolor: var(u002du002dGreys-Grey-9);nborder-radius: var(u002du002dBorder-Radius-rounded);nbackground: var(u002du002dTheme-Theme-20);n}
Focus
.focus{ncolor: var(u002du002dGreys-Grey-9);nborder-radius: var(u002du002dBorder-Radius-rounded);nborder: 1px solid var(u002du002dGreys-Grey-9);nbackground: var(u002du002dTheme-Theme-20);n}
Disabled
.disable{
color: var(--Greys-Grey-6);
}

App menu

App menu items states
Enabled
.enable{nbackground: var(u002du002dGreys-Grey-1);ntitle: var(u002du002dGreys-Grey-9);nsubtitle: var(u002du002dGreys-Grey-8);n}
Hover
topbar_userProfile_states_hover
.hover{nbackground: var(u002du002dGreys-Grey-2);ntitle: var(u002du002dGreys-Grey-9);nsubtitle: var(u002du002dGreys-Grey-8);n}
Pressed
.pressed{ncolor: var(u002du002dTheme-Theme-10);ntitle: var(u002du002dGreys-Grey-9);nsubtitle: var(u002du002dGreys-Grey-8);n}
Focus
.focus{nborder-radius: var(u002du002dBorder-Radius-x-small-radius);nborder: 1px solid var(u002du002dGreys-Grey-8);nbackground: var(u002du002dGreys-Grey-1);ntitle: var(u002du002dGreys-Grey-9);nsubtitle: var(u002du002dGreys-Grey-8);n}
Disabled
.disable{
background: var(--Greys-Grey-2);
title: var(--Greys-Grey-6);
subtitle: var(--Greys-Grey-6);
}

User Profile

User profiile options states
Enabled
.enable{nbackground: var(u002du002dGreys-Grey-1);nicon: var(u002du002dGreys-Grey-8);ntitle: var(u002du002dGreys-Grey-9);n}
Hover
.hover{nbackground: var(u002du002dGreys-Grey-2);nicon: var(u002du002dGreys-Grey-8);ntitle: var(u002du002dGreys-Grey-9);n}
Pressed
.pressed{nbackground: var(u002du002dTheme-Theme-10);nicon: var(u002du002dGreys-Grey-8);ntitle: var(u002du002dGreys-Grey-9);n}
Focus
.focus{nborder-radius: var(u002du002dBorder-Radius-x-small-radius, 4px);nborder: 1px solid var(u002du002dGreys-Grey-9);nbackground: var(u002du002dGreys-Grey-1);nicon: var(u002du002dGreys-Grey-8);ntitle: var(u002du002dGreys-Grey-9);n}
Disabled
.disable{
background: var(--Greys-Grey-2);
color: var(--Greys-Grey-6);
icon: var(--Greys-Grey-6);
title: var(--Greys-Grey-6);
}

Useful links

guidelines figma accent icon

Consult our Figma file to access our assets and inspect them in dev mode.

polygon-framework

This component is or will be provided by the Polygon framework. See its documentation to learn more.

This element is in line with the guidelines of the CDS (Cegid Design System). Find out more.

Outline