RtkNotification
A component which shows a notification.
<RtkNotification
notification={{
id: 'your-id',
message: 'Vaibhav says hi!',
image: 'https://github.com/vaibhavshn.png',
button: {
text: 'Say Hi back',
variant: 'ghost',
onClick: () => alert('Hey'),
},
}}
onRtkNotificationDismiss={() => {
console.log('Dismissed');
}}
/>
Props
notification
iconPack
paused
Stops timeout when true
Type
boolean
size
Size
Type
"lg" | "md" | "sm" | "xl"