Skip to content

RtkPoll

Last updated View as MarkdownAgent setup

A poll component. Shows a poll where a user can vote.

Properties

Property Type Required Default Description
iconPack IconPack defaultIconPack Icon pack
permissions RTKPermissionsPreset - Permissions Object
poll Poll - Poll
self string - Self ID
t RtkI18n useLanguage() Language

Usage Examples

Basic Usage

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

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

With Properties

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

function MyComponent() {
  return (
    <RtkPoll
      permissions={rtkpermissionspreset}
      poll={poll}
      self="example"
    />
  );
}

Was this helpful?