This is a basic example of using ngx-toastr with Bootstrap 5.
I personally don't use toastr built in context appear styling (e.g. success, danger...) so I have removed those styles.
Bootstrap 5 has built in toast control however it doesn't do the positioning without appling extra styles so I left the positioning classes.
If a title is not provided, there's no heading div or extra buttons. In this way you can use it like this example.
In my code base I have a BootstrapContextEnum enum that holds string equivalent of the Bootstrap contexts. This is totally optional and can be reduced to a string.