跳转到主要内容

rtk-file-message

{/* AUTO-GENERATED FILE. DO NOT EDIT MANUALLY. Any manual changes will be overwritten the next time the docs are generated.

Source: https://github.com/cloudflare/realtimekit-ui/blob/main/packages/core/src/components/rtk-file-message/rtk-file-message.tsx Generator: https://github.com/cloudflare/realtimekit-ui/blob/main/scripts/generate-stencil-docs.js

To update this page, edit the component source in the realtimekit-ui repository and submit a pull request against the staging branch; the changes will automatically sync here upon the next release. */}

@deprecated rtk-file-message is deprecated and will be removed soon. Use rtk-file-message-view instead. A component which renders a file message from chat.

Properties

Property Type Required Default Description
iconPack IconPack ❌ defaultIconPack Icon pack
isContinued boolean ✅ - Whether the message is continued by same user
message FileMessage ✅ - Text message object
now Date ✅ - Date object of now, to calculate distance between dates
showBubble boolean ✅ - show message in bubble
t RtkI18n ❌ useLanguage() Language

Usage Examples

Basic Usage

<!-- component.html -->
<rtk-file-message></rtk-file-message>

With Properties

<!-- component.html -->
<rtk-file-message
 [isContinued]="true"
 [message]="filemessage"
 [now]="date">
</rtk-file-message>