Personal DevelopmentFinanceCommunications SkillsAvantelTelecomunicaciones StarTalpa
Contact details
Company NameCompany A
Address481 West Street, Anytown 45066, USA
Websitewww.company_a.example.com
<ui5-cardclass="small"><ui5-card-headerslot="header"title-text="David Willams"subtitle-text="Sales Manager"><imgsrc="../../../assets/images/avatars/man_avatar_1.png"slot="avatar"/></ui5-card-header><ui5-listseparators="Inner"class="content-padding"><ui5-liicon="competitor"icon-end>Personal Development</ui5-li><ui5-liicon="wallet"icon-end>Finance</ui5-li><ui5-liicon="collaborate"icon-end>Communications Skills</ui5-li></ui5-list></ui5-card><ui5-cardclass="small"><ui5-card-headerslot="header"title-text="Project Cloud Transformation"subtitle-text="Revenue per Product | EUR"status="3 of 3"></ui5-card-header><ui5-listseparators="None"><ui5-lidescription="ID234522566-D44"additional-text="27.25K EUR"additional-text-state="Success">Avantel</ui5-li><ui5-lidescription="ID7125852785-A51"additional-text="22.89K EUR"additional-text-state="Warning">Telecomunicaciones Star</ui5-li><ui5-lidescription="ID123555587-I05"additional-text="7.85K EUR"additional-text-state="Error">Talpa</ui5-li></ui5-list></ui5-card><style>.content,.content-group{display:flex;flex-direction:column;padding-bottom:1rem;}</style><ui5-cardclass="small"><ui5-card-headerslot="header"title-text="Dona Maria Moore"subtitle-text="Senior Sales Executive"><imgsrc="../../../assets/images/avatars/man_avatar_1.png"slot="avatar"/></ui5-card-header><divclass="content content-padding"><ui5-titlelevel="H5"style="padding-bottom: 1rem;">Contact details</ui5-title><divclass="content-group"><ui5-label>Company Name</ui5-label><ui5-titlelevel="H6">Company A</ui5-title></div><divclass="content-group"><ui5-label>Address</ui5-label><ui5-titlelevel="H6">481 West Street, Anytown 45066, USA</ui5-title></div><divclass="content-group"><ui5-label>Website</ui5-label><ui5-linktarget="_blank">www.company_a.example.com</ui5-link></div></div></ui5-card>
Overview
The ui5-card is a component that represents information in the form of a tile with separate header and content areas. The content area of a ui5-card can be arbitrary HTML content. The header can be used through slot header. For which there is a ui5-card-header component to achieve the card look and fill.
Note: We recommend the usage of ui5-card-header for the header slot, so advantage can be taken for keyboard handling, styling and accessibility.
CSS Shadow Parts
CSS Shadow Parts allow developers to style elements inside the Shadow DOM.
You can use both properties and attributes with the same effect. The name of each attribute is listed below the name of the property, if different.
Name
Type
Default Value
Description
accessibleName
accessible-name
string
""
Defines the accessible name of the component, which is used as the name of the card region and should be unique per card. Note:accessibleName should be always set, unless accessibleNameRef is set.
since v1.0.0-rc.16
accessibleNameRef
accessible-name-ref
string
""
Defines the IDs of the elements that label the component.
since v1.0.0-rc.16
Slots
This Element provides slot(s). This means it can display its child nodes.
Unless targeting the default slot, use the slot attribute to define the destination slot for each child.
Text, along with HTML Elements with no slot attribute, goes the the default slot.
Slot
Type
Description
default
HTMLElement [0..n]
Defines the content of the component.
header
HTMLElement [0..n]
Defines the header of the component.
Note: Use ui5-card-header for the intended design.
CardHeader
Overview
The ui5-card-header is a component, meant to be used as a header of the ui5-card component. It displays valuable information, that can be defined with several properties, such as: titleText, subtitleText, status and two slots: avatar and action.
Keyboard handling
In case you enable interactive property, you can press the ui5-card-header by Space and Enter keys.
CSS Shadow Parts
CSS Shadow Parts allow developers to style elements inside the Shadow DOM. The ui5-card exposes the following CSS Shadow Parts:
root - Used to style the root DOM element of the CardHeader
title - Used to style the title of the CardHeader
subtitle - Used to style the subtitle of the CardHeader
status - Used to style the status of the CardHeader
ES6 Module Import
import "@ui5/webcomponents/dist/CardHeader";
Properties/Attributes
You can use both properties and attributes with the same effect. The name of each attribute is listed below the name of the property, if different.
Name
Type
Default Value
Description
interactive
boolean
false
Defines if the component would be interactive, e.g gets hover effect, gets focus outline and click event is fired, when pressed.
status
string
""
Defines the status text.
subtitleText
subtitle-text
string
""
Defines the subtitle text.
titleText
title-text
string
""
Defines the title text.
Slots
This Element provides slot(s). This means it can display its child nodes.
Unless targeting the default slot, use the slot attribute to define the destination slot for each child.
Text, along with HTML Elements with no slot attribute, goes the the default slot.
Slot
Type
Description
action
HTMLElement [0..n]
Defines an action, displayed in the right most part of the header.
avatar
HTMLElement [0..n]
Defines an avatar image, displayed in the left most part of the header.
Events
This Web Component fires semantic events upon user interaction. You can bind to these events with the standard DOM APIs, such as addEventListener.
Name
Description
click
Fired when the component is activated by mouse/tap or by using the Enter or Space key.
Note: The event would be fired only if the interactive property is set to true.
Theme:Morning Horizon (Light)Evening Horizon (Dark)Horizon High Contrast BlackHorizon High Contrast WhiteQuartz LightQuartz DarkQuartz High Contrast BlackQuartz High Contrast White