toast

fun toast(message: String, title: String? = null, position: ToastPosition = ToastPosition.TopEnd, color: BsColor? = null, bgColor: BsBgColor? = null, autohide: Boolean = true, delay: Duration = 5.seconds, animation: Boolean = true, className: String? = null)

Show a toast.

Parameters

message

the toast message

title

the toast title

position

the toast position

color

the toast foreground color

bgColor

the toast background color

autohide

whether the toast should be hidden automatically

delay

the toast hide delay (default 5 seconds)

animation

whether the toast should be animated

className

the CSS class names