TitleTemplate
Template used while rendering title of dialog.
razor
[Parameter] public RenderFragment<string> TitleTemplate { get; set; } = context => @<span>@context</span>;
This property can be used for adding additional elements such as icons or buttons beside the title.
Example
razor
<Dialog Title="Dialog" Buttons="DialogButton.Ok | DialogButton.Cancel">
<TitleTemplate>
<img src="dialog_icon.png"> <span>@context</span>
</TitleTemplate>
<ChildContent>
dialog content
</ChildContent>
</Dialog>