# Dialog Header

The header contains the `Title` and the [`Close Action` button](https://www.telerik.com/blazor-ui/documentation/components/dialog/action-buttons).

There are two ways to define a Dialog title:

* a string `Title` attribute of the component
* a nested `<DialogTitle>` render fragment.

The default `Title` value is `null`.

You can control the close action via the `ShowCloseButton` parameter. Its default value is `true`.

> If you don't want to render the header, set the `ShowCloseButton` to `false` and don't set a `Title`.

## Example

The following example demonstrates how to set up the title through a template. The close action button is also hidden.

> caption Title template and no close button in the Telerik Dialog.

<demo metaUrl="client/dialog/header/title-template-1/" height="420"></demo>

## See Also

* [(KB) Keep Content in the DOM When the Window Is Closed](https://www.telerik.com/blazor-ui/documentation/knowledge-base/window-keep-content-when-closed)
