跳转到主要内容

RtkFileMessageView

A component which renders a file message.

Properties

Property Type Required Default Description
iconPack IconPack1 ❌ defaultIconPack Icon pack
name string ✅ - Name of the file
size number ✅ - Size of the file
url string ✅ - Url of the file

Usage Examples

Basic Usage

import { RtkFileMessageView } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return <RtkFileMessageView />;
}

With Properties

import { RtkFileMessageView } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return (
    <RtkFileMessageView
      name="example"
      size={42}
      url="example"
    />
  );
}