# Content

The Notification provides options for controlling its content.

To configure the content, use any of the following approaches:

<Row>
  <Column count={[24,24,8]} style={{marginBottom: "1rem"}}>
    <Component className="tile" href="#passing-a-string">
      <ComponentTitle>Pass a String</ComponentTitle>
      <ComponentDescription style={{padding: "0 10px 10px 10px"}}>Display notification messages by passing a string to the content field.</ComponentDescription>
    </Component>
  </Column>
  <Column count={[24,24,8]} style={{marginBottom: "1rem"}}>
    <Component className="tile" href="#using-templates">
      <ComponentTitle>Use Templates</ComponentTitle>
      <ComponentDescription style={{padding: "0 10px 10px 10px"}}>Set custom templates for notification content using TemplateRef.</ComponentDescription>
    </Component>
  </Column>
  <Column count={[24,24,8]} style={{marginBottom: "1rem"}}>
    <Component className="tile" href="#rendering-a-component">
      <ComponentTitle>Render a Component</ComponentTitle>
      <ComponentDescription style={{padding: "0 10px 10px 10px"}}>Render Angular components in the notification content area.</ComponentDescription>
    </Component>
  </Column>
</Row>

## Passing a String

Passing a string to the [`content`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationsettings#content) field is the basic way to display a notification message. The text that is passed represents the rendered content of the notification.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/notification/content/passing-string/source.txt)

## Using Templates

To set a template for the content area of the Notification, pass a `TemplateRef` to the [`content`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationsettings#content) field of the [`show`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationservice) method.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/notification/content/using-template/source.txt)

## Rendering a Component

To render a component in the content area of the Notification, pass a component type in the [`content`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationsettings#content) field of the [`show`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationservice) method.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/notification/content/rendering-component/source.txt)

## Suggested Links

* [API Index of the Notification](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api)
* [API Reference of the Notification Settings](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationsettings)
