Skip to content
Cloudflare Docs

rtk-notification

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

<rtk-notification></rtk-notification>

With Properties

<rtk-notification
size="md">
</rtk-notification>
<script>
const el = document.querySelector("rtk-notification");
el.paused= true;
</script>