Intro
You can use the list component to display different types of list item. Each list item can include an image, text, icon, or other HTML content. List items can also be grouped.
The list component comes with built-in selection and deletion modes, as well as configurable separators.
https://www.sap.com/design-system/live-examples/List/List_LE_Intro.html
List – live example
When to Use
Anatomy
List
- Header: The first item of the list serves as a header. The header contains the title of the list.
- Footer: If the footer element is used, the footer is the last item in the list.
- Separator: The list item separators are customizable.
Anatomy of a list
Standard List Item
The standard list item is the simplest type of list item. It provides elements for the most common use cases, such as image, text, and icon.
- Image
- Text
- Icon / additional text:
a. Icon: You can use the iconEnd property to place an icon at the end of an item.
b. Additional text: You can use the additionalText property to display an additional text at the end of a row. The additionalTextState property applies a semantic state to this text.
Anatomy of a standard list item
Custom List Item
Anatomy of a custom list item
Group Header List Item
Anatomy of a group header list item
Types
The following list variants are available to support different use cases:
List Structure
Standard List
https://www.sap.com/design-system/live-examples/List/List_LE_Behavior_Standard_List.html
Standard list – live example
Growing List (Scroll)
https://www.sap.com/design-system/live-examples/List/List_LE_Variant_Growing.html
Growing list with scrollbar – live example
List with Image Content
https://www.sap.com/design-system/live-examples/List/List_SE_Variant_Image_Content.html
List items using the image content slot to display avatars
List Item Separators
https://www.sap.com/design-system/live-examples/List/List_SE_Variant_Separation_Types.html
List item separation types
List with Group Headers
https://www.sap.com/design-system/live-examples/List/List_SE_Variant_Group_Headers.html
List with group headers
Single Selection Mode
https://www.sap.com/design-system/live-examples/List/List_LE_Behavior_Single_Selection.html
Single selection mode – live example
Multiple Selection Mode
https://www.sap.com/design-system/live-examples/List/List_LE_Behavior_Multi_Selection.html
Multiple selection mode – live example
Delete Mode
https://www.sap.com/design-system/live-examples/List/List_LE_Behavior_Delete_Mode.html
Delete mode with ‘X’ icon – live example
Busy List
https://www.sap.com/design-system/live-examples/List/List_LE_Variant_Busy.html
Busy list – live example
List with No Data
Behavior and Interaction
See the examples for the following variants:
Responsive Behavior
Wrapping and Truncation
By default, texts in a list item are truncated if there isn’t enough space.
https://www.sap.com/design-system/live-examples/List/List_SE_Long%20Texts_Truncation.html
List item with long title, description, and additional text
https://www.sap.com/design-system/live-examples/List/List_SE_Long%20Texts_Truncation.html
List item with truncated text