# Notification Templates

The Notification allows you to customize its rendering by using Templates. This article explains the available layout templates for the component.

* [Template](https://www.telerik.com/blazor-ui/documentation/components/notification/templates#template)

## Template

The Template allows you to control the rendering of all Notifications which originate from the same reference. It provides a context - object of type `NotificationModel` (the model you pass to the `Show()` method). To apply different templates to different notifications you should provide different references too.

This section gives examples that show how to:

* [Customize All Notifications From The Same Reference](https://www.telerik.com/blazor-ui/documentation/components/notification/templates#customize-all-notifications-from-the-same-reference)
* [Use Different Templates](https://www.telerik.com/blazor-ui/documentation/components/notification/templates#use-different-templates)
* [Get a Click Event for Notification Body](https://www.telerik.com/blazor-ui/documentation/components/notification/templates#get-a-click-event-for-notification-body)

### Customize All Notifications From The Same Reference

<demo metaUrl="client/notification/templates/same-reference/"></demo>

### Use Different Templates

When you are using different references in order to provide multiple templates the Notifications will not [stack](https://www.telerik.com/blazor-ui/documentation/components/notification/stacked-notifications).

<demo metaUrl="client/notification/templates/different-references/"></demo>

### Get a Click Event for Notification Body

You can handle events in the template of the notification like with any other Blazor template. This lets you achieve interactivity in the templates. For example, you can know when the user clicks the notification text.

<demo metaUrl="client/notification/templates/click-event/"></demo>

## See Also

* [Live Demo: Notification Overview](https://demos.telerik.com/blazor-ui/notification/overview)
* [Live Demo: Notification Template](https://demos.telerik.com/blazor-ui/notification/template)
