Notifications
`notify(data)`
Shows a toast notification.
| Field | Type | Default | Description |
|---|---|---|---|
title |
string |
— | Notification title (required if no description) |
description |
string |
— | Body text (required if no title) |
id |
string |
'' |
Optional dedup ID — replaces an existing notification with the same ID |
type |
string |
'inform' |
'inform', 'success', 'error', 'warning' |
duration |
number |
3000 |
Display time in milliseconds |
showDuration |
boolean |
true |
Show the countdown progress bar |
position |
string |
'center-right' |
Screen position (e.g. 'top-left', 'bottom-center') |
icon |
string |
(type default) | Font Awesome icon name (e.g. 'star') or full class (e.g. 'fa-solid fa-star') |
iconColor |
string |
'inherit' |
CSS color for the icon |
iconAnimation |
string |
— | Font Awesome animation class (e.g. 'fa-spin') |
alignIcon |
string |
'center' |
'center' or 'top' |
style |
table |
{} |
Inline CSS overrides applied to the notification card |
sound |
table |
{} |
Sound config table |
exports['amzn_uikit']:notify({
title = 'Success',
description = 'Item purchased.',
type = 'success',
duration = 4000,
})Previews
GLASS
