@Component({
selector: "app-custom-message",
template: `
<stream-icon icon="delivered-icon"></stream-icon>
<!-- Other parts of the custom message component -->
`,
})
export class CustomMessageComponent {
@Input() message: StreamMessage;
}
This is documentation for
Stream Chat Angular SDK v4, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v5).
IconComponent
The Icon
component can be used to display different icons (i. e. message delivered icon).
Basic usage
A typical use case for the Icon
component would be to use in your custom components.
Customization
You can provide your own icon component by the CustomTemplatesService
Inputs and outputs
icon
• icon: undefined
| Icon
The icon to display, the list of supported icons can be found on GitHub.
Defined in
size
• size: undefined
| number
The size of the icon (in pixels)
Defined in
On this page: