packages/components/eui-avatar/avatar-content/avatar-content-label.component.ts
Component for displaying the primary label text within avatar content. Typically used to show the user's name or primary identifier. Content is projected via ng-content and styled as the main text line. Must be used within eui-avatar-content for proper styling and layout.
Example :<eui-avatar>
<eui-avatar-image src="user.jpg"></eui-avatar-image>
<eui-avatar-content>
<eui-avatar-content-label>John Doe</eui-avatar-content-label>
<eui-avatar-content-sublabel>Developer</eui-avatar-content-sublabel>
</eui-avatar-content>
</eui-avatar>| changeDetection | ChangeDetectionStrategy.OnPush |
| host | { |
| selector | eui-avatar-content-label |
| template | |
| styleUrl | ./avatar-content-label.scss |
Methods |
| cssClasses |
cssClasses()
|
|
Binds the CSS class 'eui-avatar-list' to the host element. This class provides the styling necessary for arranging avatars in a list.
Returns :
string
The CSS class name |