# Displaying a notification

MacLib gives you access to a built-in notification system, providing you with an easy way to display alerts and messages seamlessly within your UI.\
![](https://2943218207-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRtWRcExHV8IBJHoV9bx%2Fuploads%2FKeel7meJL5sqEazbGjar%2Fimage.png?alt=media\&token=4384b1bf-2aba-44f1-80ad-c82f2a594a00)

```lua
Window:Notify({
    Title <string>
    Description <string>
    Lifetime <number>
    Scale <number>
    SizeX = <number>
    Style <string: "None", "Confirm", "Cancel"> -- The type of button that the user interacts with, input "None" for no interactable (or leave nil), input "Confirm" for a checkmark, and input "Cancel" for a crossmark.
    Callback <function(): void>
})
```

Functions

```lua
:UpdateTitle(<string>)
:UpdateDescription(<string>)
:Resize(<number>) -- Only X, Y is automatically determined by the content size
:Cancel()
```

Example

```lua
Window:Notify({
    Title = "Kuzu Hub",
    Description = "Hello, World!",
    Lifetime = 5
})
```
