Image (situational): Gives context to the user as to what the card is about.
Title: Serves to let the user know exactly what the card is about, ideal to keep this short and
to the point.
Description: Serves to give users information on the card.
CTA (situational): When you need users to take a action, this can be omitted if the card is meant
to display only information. Text link can be replaced by a button if needed if the situation calls for
it.
Action card
Icon: Gives more context to what the card is about.
Selector: Allows users to select one or more cards.
Action card with quantity toggle
Used mainly for situations with subscriptions or when you require users to select a amount for a given item.
This allows users to select a item and decide on the quantity they want.
Quantity toggle: Allows users to select the amount they require.
Price (situational): Displays the amount of a single item. Can be used to show total based on
amount selected. Pricing can be omitted if you do not require it.
Spacing
Default card
Within the default
Ensure that there is a min 24px spacing inside of the card and 16px vertical spacing between content.
Action card
Within the action card
Ensure that there is a min 24px spacing inside of the card and 16px vertical spacing between content.
Action card with quantity toggle
Within the action card with quantity toggle
Ensure that there is a min 24px spacing inside of the card and 16px vertical spacing between content.
Usage guidelines
Best practices:
Cards can be displayed together in a grid, vertical list, or carousel.
Don’t scroll within a card to reveal information.
Cards should be used when:
You need to display similar content and actions on a topic inside a container.
You need to visually separate specific parts of content in a view.
Cards should not be used when:
You need to inform user about important changes. Use Alerts component instead.
The information contained within the card is not related.
Usability guidelines
Keep card title brief and clear
Be brief and keep it to a single line by utilising a sentence fragment. Avoid using punctuation as much as possible.
Use consistent elements when cards are arranged in a group
For groups of cards, ensure the components used are consistent from card to card. Eg. Use the same height and width for each card on the page.
Card content should be summarised and easy to digest
Don't overwhelm the space with excessive content. The content should be easily accessed and explored so that it is easier for users to find what they are interested in.
Behaviour
The hover state should provide a visual cue to the user that the element is interactive. When tabbed, a focus indicator should appear to provide a visual cue to the user that the destination is now selected and action can be taken.
Accessibility guidelines
Keyboard accessibility
Informational card:
Not applicable.
Action card:
The only interactive elements are HTML button and hyperlink elements, and all their keyboard functionality is provided by browsers.
Tab or Shift-Tab to navigate between cards or interactive elements within the card.
Enter to activate and select actions within card.
Focus indicator
Ensure that interactive elements within the card are included in the natural tab order of the page and can be focused using the Tab key.
Provide a clear visual indication of focus for interactive elements within the card, such as using the focus state when focused.
If the card contains a focusable element that opens a modal or a popover, ensure that focus is trapped within the modal or popover until it is closed, and then returned to the last focused element within the card.