Type Alias: ToastAction
type ToastAction = {
onClick?: ContextCommand[];
style?: ToastStyle;
text: string;
variant?: "outline" | "transparent";
};
Properties
| Property | Type | Description |
|---|---|---|
onClick? |
ContextCommand[] |
- |
style? |
ToastStyle |
Overrides the color of the text/outline |
text |
string |
- |
variant? |
"outline" | "transparent" |
Outline variant will include a border, themed by the style Transparent variant will only show the text |