Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

RtkLeaveButton

最終更新 Markdown で表示Agent セットアップ

退出確認ダイアログの表示を切り替えるボタンです。

プロパティ

プロパティ 型 必須 デフォルト 説明
iconPack IconPack ❌ defaultIconPack アイコンパック
size Size ✅ - サイズ
t RtkI18n ❌ useLanguage() 言語
variant ControlBarVariant ✅ - バリアント

使用例

基本的な使い方

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

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

プロパティを指定する場合

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

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

役に立ちましたか?