T
ToastButton
A button rendered inside a toast.
type ToastButton = { … }Members
content
stringThe button's label.
An asset id, an element such as <Star />, or an icon component such as Star, drawn beside the label.
iconPosition?
"start" | "end"Which side of the label the icon sits on. Defaults to 'start'.
onPress
() => voidRuns when the button is tapped. The toast stays open; call close on its handle to dismiss it.
size?
"sm" | "md" | "lg" | "xl" | "2xl"The Discord button size. Defaults to 'sm'.
variant?
"primary" | "secondary" | "tertiary"The Discord button style. Defaults to 'primary'.