Cards contain content and actions about a single subject.
Cards are surfaces that display content and actions on a single topic.
They should be easy to scan for relevant and actionable information. Elements, like text and images, should be placed on them in a way that clearly indicates hierarchy.
Contained: A card is identifiable as a single, contained unit.
Independent: A card can stand alone, without relying on surrounding elements for context.
Individual: A card cannot merge with another card, or divide into multiple cards.
Card layouts can vary to support the types of content they contain. The following are the anatomy for two types of cards.
Each card is made up of content blocks. All of the blocks, as a whole, are related to a single subject or destination. Content can receive different levels of emphasis, depending on its level of hierarchy.
By default, cards have a resting elevation of 0dp. They elevate to 1dp on hover, with a raised dragged elevation of 8dp.
When multiple cards are present, they are grouped together into one or more collections. By default, cards in a collection are coplanar, sharing the same resting elevation unless they are picked up or dragged.
Organize card collections so that they are easy to use. Their layout affects how they are perceived.
When adding cards to a collection, the first item is automatically positioned on the top left. Subsequent cards are laid out left to right, top to bottom.
To make a collection of cards scannable, place them in a consistent pattern.
To keep the user informed, an empty card with a height of 88px should be displayed during an empty state while waiting for content to load. The width is unaffected and follows the Specs.
Overflow menus should be located in the upper-right corner(1) of a card.
UI controls can be included within a card to allow the user to interact with a card's content. UI controls may be in the form of a slider, stars to rate content, chips, or buttons.
When traversing through focus points on a card, visit each focused element before moving to the next card.
For users that navigate solely using focus traversal (using a D-pad and keyboard), cards should have either a primary action or open a new screen containing primary and supplemental actions.
Simple cards follows the basic anatomy of Cards which has a static container size.
Expandable cards includes extensible container. Content that can be expanded should use full-width dividers.
The minimum width of Card should be 280px. This width supports 3 columns of large Page layout
, and 4 columns of medium Page layout
.
The overflow icon button is an Outlined Icon Button that has a "more-vert" 24x24px icon with no background or border around it, but it has same ripple effects (hover, active... etc) as Outlined Icon Button. Overflow icon button is positioned at the top right corner of the Card with 8px paddings from the top and right side of the Card container.
This button is Card specific button, it has the same height and ripple effects as other Buttons, the only difference is that this button has only text and no outline or background color.