Skip to content

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

RtkFilePickerButton

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

プロパティ

プロパティ 型 必須 デフォルト 説明
filter string ✅ - ファイルピッカーを開くときのファイル種別フィルター
icon keyof IconPack1 ✅ - アイコン
iconPack IconPack1 ❌ defaultIconPack アイコンパック
label string ✅ - ツールチップのラベル
t RtkI18n1 ❌ useLanguage() 言語

使用例

基本的な使い方

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

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

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

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

function MyComponent() {
  return (
    <RtkFilePickerButton
      filter="example"
      icon={defaultIconPack}
      label="example"
    />
  );
}

役に立ちましたか?