跳转到内容
搜索文档

RtkNotifications

最后更新 查看 MarkdownAgent 设置

用于处理通知的组件。您可以配置希望看到哪些通知以及希望听到哪些通知的声音。您还可以设置某些限制。

属性

属性 类型 是否必填 默认值 描述
config UIConfig createDefaultConfig() 配置对象
iconPack IconPack defaultIconPack 图标包
meeting Meeting - 会议对象
size Size - 尺寸
states States - 状态对象
t RtkI18n useLanguage() 语言

使用示例

基本用法

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

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

带有属性

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

function MyComponent() {
  return (
    <RtkNotifications
      meeting={meeting}
      size="md"
    />
  );
}

这篇文档对您有帮助吗?