Skip to content
Cloudflare Docs

RtkNotification

A component which shows a notification. You need to remove the element after you receive the rtkNotificationDismiss event.

Properties

PropertyTypeRequiredDefaultDescription
iconPackIconPackdefaultIconPackIcon pack
notificationNotification-Message
pausedboolean-Stops timeout when true
sizeSize-Size
tRtkI18nuseLanguage()Language

Usage Examples

Basic Usage

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

With Properties

import { RtkNotification } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkNotification
notification={notification}
paused={true}
size="md"
/>
);
}