Toggle button to open the polls sidebar panel. Hides if poll permissions are not available.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
meeting |
RealtimeKitClient |
✅ | - | The RealtimeKit meeting instance |
states |
States |
✅ | - | UI state object |
size |
'lg' | 'md' | 'sm' | 'xl' |
❌ | - | Icon size |
variant |
'button' | 'horizontal' |
❌ | - | Layout variant |
iconPack |
IconPack |
❌ | defaultIconPack |
Custom icon pack |
t |
RtkI18n |
❌ | - | i18n translation function |
import { RtkPollsToggle } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return <RtkPollsToggle meeting={meeting} states={states} />;
}import { RtkPollsToggle } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return (
<RtkPollsToggle
meeting={meeting}
states={states}
size="md"
variant="button"
/>
);
}