Skip to content

RtkFileDropzone

Last updated View as MarkdownAgent setup

Properties

Property Type Required Default Description
hostEl HTMLElement - Host element on which drop events to attach
iconPack IconPack1 defaultIconPack Icon pack
t RtkI18n1 useLanguage() Language

Usage Examples

Basic Usage

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

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

With Properties

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

function MyComponent() {
  return (
    <RtkFileDropzone
      hostEl={htmlelement}
    />
  );
}

Was this helpful?