Skip to main content
Version: v4

File Bubble

CometChatFileBubble is the content view for a MediaMessage if the media sent is a file.

Properties

NameTypeDescription
titlestringTitle of the element
subtitlestringSubtitle of the element
fileUrlstringURL of the file
downloadIconURLstringAsset URL for the download icon
fileStyleFileBubbleStyleStyling properties of the element

FileBubbleStyle

Styling properties of the element

NameDescription
widthSets the width of the element
heightSets the height of the element
borderSets the border of the element
borderRadiusSets the border radius of the element
backgroundSets all background style properties at once, such as color, image, origin and size, or repeat method. Reference link
titleFontSets all the different properties of font for the title text. Reference link
titleColorSets the foreground color of the title text.
subtitleFontSets all the different properties of font for the subtitle text. Reference link
subtitleColorSets the foreground color of the title text.
iconTintSets the tint or color applied to the download icon

Usage

<!--use the element-->
<cometchat-file-bubble
[fileURL]="url"
></cometchat-file-bubble>