A card view is a grid of cards in a gallery to facilitate browsing. Card views are typically used to present data set summaries, allowing users to drill down into any card to see more detailed content.
![card view](/2022.05/images/card-view.e96ba44ca7277e4d432d6892d2d954f7.png)
Use a card view to:
- Display items in a data set that are best identified by a graphic or other visual representation.
- Make information easier to visualize and compare.
- Summarize a large number of objects at once within the same page.
Never use a card view to make a large amount of text-based content easier to scan. Use a table or list view instead.
Background colors for card views
Card views can be placed on a white or a gray background, depending on your use case.
Use a white background if your content view can change, such as when:
- A card that opens an expandable panel on the right.
- A card view that toggles into a table or list view.
![card view with white background](/2022.05/images/white-background.df6103a493301f31c3032b8ada4f4279.png)
Use a gray background if the sole purpose of your content view is to display cards.
![card view with gray background](/2022.05/images/gray-background.a999f386eb953bd14707eccbd48d1ab7.png)
Note: Use the default border treatment (cards with drop shadows) for cards when placed on a gray background only. Flat cards should be used when placing cards on a white background.
Card views on mobile
Cards will size down appropriately based on the built-in CSS responsiveness behaviors. Most of the time, they’ll follow the grid layout, expanding and compressing at certain breakpoints. At the smallest mobile size, they take up almost the entire width of the screen.
![mobile card view](/2022.05/images/mobile-cards.45019baf6849ab221c74bcc5f6b1f955.png)
Card view actions
You can customize card actions in a few ways. Depending on your use case, consider customizing inline actions, multiple inline actions, global actions, or action cards within your card view.
Inline actions
If an action can be performed on one card only, place the action in the card’s body or footer.
If you have a few cards with single actions, use the secondary button style.
If you have many cards with single actions, use a link button.
![few cards with multiple actions](/2022.05/images/few-multiple-actions.070154c295b620d800086c8e8d4b009f.png)
Multiple inline actions
If multiple actions can be performed on a single card, place those actions in a kebab. Position the kebab in the top-right corner of the card header.
![cards with multiple inline actions in a kebab](/2022.05/images/multiple-inline.502ea3295e4f216dcf0bbdd63519a75f.png)
Global actions
If an action can be performed globally on multiple cards, or if it leads to multiple pieces of content at the same time, place the action in a toolbar above the card view. In the top-right corner of your card, add a checkbox so that users can select one or more items.
![card view with global action toolbar](/2022.05/images/global-actions.292320c39c18d98f3d4f47c84784b691.png)
Action card
You may use an extra-small empty state inside a card to present users with another way to add more cards to the existing card view. We recommend using this feature in addition to a primary button in the toolbar, to ensure that the user is still able to perform the action from any page of the card view. Place the action card where a new card will be added, most likely as the very first or last card in the card view.
![card view with addition card](/2022.05/images/add-card-empty-state.1f56c82bfff420d453dd005fd41d014d.png)
Bottom pagination
If your card view has multiple pages, add a footer with pagination.
![card view with sticky bottom toolbar](/2022.05/images/card-view-sticky-toolbar.3f0cb8535b69a7011db0ca953cbac091.png)
View source on GitHub