Floating group element (web)
This section covers the floating group, a container type used to attach a group to one of the sides of the screen so it stays in place regardless of scrolling position.
A floating group is a container that hovers above the rest of the page. It can be attached to any side of the screen and stays in place regardless of how far the user scrolls. Because they're independent of the page's normal flow, floating groups are the go-to element for headers, sidebars, and other UI that needs to stay visible at all times.
Common uses
Floating groups are used for anything that needs to remain accessible as the user moves through a page:
Navigation menus that stay at the top of the screen while users scroll.
Sidebars that provide persistent navigation or context.
Chat widgets anchored to a corner of the screen.
Shopping cart summaries that follow the user across the site.
Back-to-top buttons that appear once the user has scrolled down.
Cookie consent banners at the bottom of the page.
Notifications and toasts that appear briefly and dismiss themselves.

How floating groups behave
Floating groups sit in their own layer above the rest of the page. Because of this, they don't affect the layout of the surrounding content. Regular elements don't push around floating groups or make room for them, and floating groups don't take up space in the normal flow.
This is what allows a floating header to stay pinned to the top of the viewport while the user scrolls, or a sidebar to stay fixed to the left of the screen no matter how tall the page becomes.
Floating groups can hold any elements a regular group can, including text, images, buttons, dropdowns, and other containers.
Attaching to the screen
Every floating group is attached to the screen along a horizontal and vertical axis. Together, these two settings determine where the group appears and how it stays positioned as the user scrolls.
The horizontal axis controls whether the group sticks to the left, right, or spans both sides. The vertical axis controls whether it sticks to the top, bottom, or spans both. A group that spans both edges stretches to fill the screen along that axis.

Margins let you offset the group from the edge it's attached to. For example, a sidebar might be attached to the left edge with a 20-pixel top margin so it sits slightly below the top of the screen.
Layering with z-index
The z-index controls whether a floating group sits above or below other elements. By default, floating groups sit above the page content, which is what makes them float visibly.
You can also set a floating group to sit beneath the page. This is occasionally useful for background layers or design effects, but it comes with a catch: if the page has its own background style, that background can hide the floating group entirely.

Unless you're intentionally using a floating group as a background layer, leave the z-index setting on its default so the group appears above the page.
Loading data into a floating group
Floating groups can hold a data source, just like regular groups.
Set the data source directly
Set the Type of content and Data source on the group, and its child elements can reference the data using Parent group's expressions.

This is useful when a floating group needs to display data about the current context, such as a header showing the current user's name, or a cart summary showing the current order.
Push data with a workflow
Data can also be loaded dynamically by using the Display data in a group/popup action. This is useful when you need to load data into the floating group as the result of a user action.

Showing and hiding floating groups
Floating groups can be shown, hidden, and animated in the same way as regular groups. Use the Show an element, Hide an element, Toggle an element, or Animate an element actions to control visibility.
Some common patterns:
A back-to-top button that appears only once the user has scrolled past a certain point.
A notification banner that slides in from the top and disappears after a few seconds.
A sidebar that opens and closes based on a button click.
Styling floating groups
Floating groups can be styled like any other container. They support background colors, borders, border radius, shadows, and opacity. Because they sit above the page, they often benefit from a subtle shadow or border to visually separate them from the content behind them.
Using shared styles or style variables keeps floating groups consistent with the rest of your app's design.
Article series: Styles
Responsive behavior
Floating groups follow the same layout system as other containers, so they support column, row, align, and fixed layout modes. Combined with their ability to span or attach to edges, this gives you a lot of flexibility for responsive design.
A common pattern is a floating header that stays attached to the top of the screen and uses a row layout inside, with elements like a logo, navigation links, and a login button arranged horizontally. On smaller screens, the same header can shift to a column layout or collapse into a menu.
Frequently asked questions
Other ways to learn
Last updated
Was this helpful?