Stack

A stack is a collapsed list that only displays one piece of content at a time, in a stacked visual, such as a notification or card.

Design elements should be anchored to the bottom of the frame.

Principles

Stack are a container component, so they share design principles with cards and lists:

Containment: Stacks group related information and actions into a single, digestible unit.

Focused & Clarity: They present content in a clear, focused manner.

Versatility: Stacks can display cards and notifications.

Consistent Presentation: Stacks follow a consistent visual structure.

Usage & Placement

Stacks are a way to showcase to users that there are multiple elements collapsed in a list while minimizing the visual elements within view. There are two different variants of stacks: 

Card stacks

Notification stacks

Stacks are a container component, both versions do not act or look differently. 

Both should look and act nearly identical. The stack simply is a container for these controls with built-in logic for pagination. 

Users navigate by swiping or dragging along the touchpad forward and backward. Scrolling the stack will move through only one item at a time.

Design elements should be anchored to the bottom of the frame. Use depth to indicate focus

Lower stack items use a depth of 0 while the top most item uses a depth of +2.

Design elements should be anchored to the bottom of the frame. Stacks can traversed one item at a time

Upon touch input, stacks are able to present one item at a time by moving vertically.

Upon touch input, stacks are able to become lists to show more than one element at a time.  The list should use default containers and focus states.

Anatomy

A stack is always collapsed as a pagination component. The top item is always the primary focus, showing the stronger border depth, unless there is a nested enabled button.

Bumpers help reinforce the end/beginning of a stack. A spring animation that snaps the list back into place upon release.

Design elements should be anchored to the bottom of the frame.

Customization

Stacks have built-in scrim, paging, and animations that can’t be customized. Rather the content within the stacks is customized.