← Cloudflare Realtime / realtime / realtimekit / ui-kit / api-reference / core
rtk-poll
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
<rtk-poll></rtk-poll>With Properties
<rtk-poll
self="example">
</rtk-poll><script>
const el = document.querySelector("rtk-poll");
</script>