T
ToastOptions
Options accepted when showing a toast.
type ToastOptions = { … }Members
content?
stringThe body text under the title.
duration?
numberMilliseconds before the toast closes itself; 0 keeps it until dismissed. Omitted, the user's toast duration setting.
An asset name, asset id, image source, element such as <Star />, or icon component such as Star; a name with no matching asset draws no image.
id?
stringIdentifies the toast; showing another toast with the same id replaces it. Omitted, a random id.
onTimeout?
() => voidDeclared for callers, but the client does not call it yet.
tintedIcon?
booleanTints an image icon with the theme's icon colour. Defaults to true; set false for a coloured image. An element or component draws its own colour.
title?
string | React.ComponentTypeThe bold first line, or a component rendered in its place.