Replies: 1 comment
-
@roysurles Use "Toast with templated content". Example<Toasts class="p-3" Messages="messages" />
<Button Class="btn btn-primary" @onclick="ShowToast">Toast with Content</Button>
@code {
List<ToastMessage> messages = [];
private void ShowToast() =>
messages.Add(
new ToastMessage
{
Type = ToastType.Info,
Title = "Blazor Bootstrap",
Content = @<div>Hello, world! This is a toast message. <br /> Add additional information here.</div>,
});
} Screenshot |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to create a toast message with multiple lines?
"Message1
Message2" renders single line instead of 2 lines
Beta Was this translation helpful? Give feedback.
All reactions