跳转到内容
搜索文档

RtkLeaveButton

最后更新 查看 MarkdownAgent 设置

用于触发离开会议确认对话框的按钮。

属性

属性 类型 必填 默认值 描述
variant 'button' | 'horizontal' - 布局变体
size 'lg' | 'md' | 'sm' | 'xl' - 按钮尺寸
iconPack IconPack defaultIconPack 自定义图标包
t RtkI18n - i18n 翻译函数

使用示例

基本用法

import { RtkLeaveButton } from "@cloudflare/realtimekit-react-native-ui";

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

带有属性

import { RtkLeaveButton } from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return <RtkLeaveButton variant="button" size="md" />;
}

这篇文档对您有帮助吗?