Skip to content

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

RtkIcon

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

アイコン文字列から SVG アイコンを描画し、現在のテーマのテキスト色を適用します。

プロパティ

プロパティ 型 必須 デフォルト 説明
icon string ✅ - 描画する SVG アイコン文字列

使用例

基本的な使い方

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

function MyComponent() {
	return <RtkIcon icon={svgIconString} />;
}

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

import {
	RtkIcon,
	defaultIconPack,
} from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return <RtkIcon icon={defaultIconPack.mic_on} />;
}

役に立ちましたか?