Skip to content
Cloudflare Docs

RtkFilePickerButton

Properties

PropertyTypeRequiredDefaultDescription
filterstring-File type filter to open file picker with
iconkeyof IconPack1-Icon
iconPackIconPack1defaultIconPackIcon pack
labelstring-Label for tooltip
tRtkI18n1useLanguage()Language

Usage Examples

Basic Usage

import { RtkFilePickerButton } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkFilePickerButton />;
}

With Properties

import { RtkFilePickerButton } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkFilePickerButton
filter="example"
icon={defaultIconPack}
label="example"
/>
);
}