Horizontal list element (mobile)
A horizontal list displays items side by side in a scrollable row. Learn where you can place it, how to load and reference data, and how to control spacing and snapping.
A horizontal list is a container used to display a list of items in a scrollable, side-to-side layout. Like other list types on mobile, it works by repeating the same set of elements once for each item in the data source. Unlike vertical or short lists, horizontal lists scroll left and right, making them well suited for content that benefits from being browsed sideways.
What horizontal lists do
Horizontal lists take a list of things and repeat their child elements once for each item, laying them out in a row that the user can scroll through. If you show a list of 10 products, everything you add to the horizontal list is duplicated 10 times, once per product, and arranged side by side.
Each of these repetitions is called an item. An item holds all the child elements and represents a single record from the list. Text elements can display data from that item, buttons can trigger actions on it, and containers can be styled to give each item its own look.
Horizontal lists work similarly to other lists on mobile: you set a Type of content, provide a Data source, and the elements inside can reference the data.
When to use a horizontal list
Horizontal lists shine when the content works better as a sideways scroll than a vertical stack. Common uses include:
Category carousels at the top of a screen, letting users tap between sections.
Featured content rows, like recommended articles, videos, or products.
Media galleries, such as scrollable image or video thumbnails.
Story previews, similar to the horizontal story rows in social apps.
Chip or tag lists, where users can scroll through options that don't fit on a single line.
Horizontal lists are also often used inside vertical lists, letting each row of a vertical layout contain its own sideways-scrolling collection.
Placement rules
Horizontal lists can't be placed directly on a list view. They can only be used in:
A non-list view.
Inside another list on a list view, such as nested within a vertical list.
This means horizontal lists are typically added as one component within a larger layout, rather than being the primary structure of a view.
Loading data into a horizontal list
To load data into the horizontal list, use a dynamic expression in its data source. The list loads as soon as the view opens, using an expression like Do a search for Posts.

Horizontal lists can't be loaded through a workflow action, but you can use a conditional to change the data source based on specific circumstances.
Referencing data in an item
Each item represents a different record in the list. Reference data inside an item using the Current item expression. If the Type of content is Post, you'd reference Current item's Post's title to show the post's title.
One text element inside the horizontal list then displays all the titles in the list, one per item.
Spacing between items
Horizontal lists include built-in properties for controlling the spacing between items:
List item gap spacing turns spacing on or off.
Item gap (px) sets the exact spacing in pixels.
These controls make it easy to keep items visually separated without adding extra margins or padding to individual items.
Snapping
Snapping controls how the list settles when the user stops scrolling. Instead of free-scrolling and stopping wherever momentum runs out, a snapping list comes to rest at a defined point, either on an individual item or on a full page of content. Bubble reads your layout settings, including item size, padding, and gaps, and applies the correct native snapping behavior automatically.
For more info, see the core reference entry below.
Reference: The snapping property
Styling horizontal lists
Horizontal lists can be styled like any other container. This controls the styling of the list itself, while individual elements inside each item can be styled independently.
You can style individual horizontal lists by adjusting their different properties, or by connecting them to predefined styles and/or style variables.
Performance considerations
Because horizontal lists load their items upfront, they're best suited to small or medium collections. A few things to keep in mind:
Long lists can slow down rendering. For very long collections, limit the data source with search constraints or pagination.
Media-heavy items add up. Loading many high-resolution images at once can affect performance and data usage. Consider using optimized image sizes.
Nested lists compound cost. Each parent list runs its own query for the nested list, so nesting should be used deliberately.
FAQ: Horizontal lists
Last updated
Was this helpful?