@dfinity/gix-components
Version:
A UI kit developed by the GIX team
18 lines (17 loc) • 515 B
TypeScript
import type { Component } from "svelte";
export type ToastLevel = "success" | "warn" | "error" | "info" | "custom";
export type ToastPosition = "bottom" | "top";
export type ToastTheme = "themed" | "inverted";
export interface ToastMsg {
id: symbol;
title?: string;
text: string;
level: ToastLevel;
spinner?: boolean;
duration?: number;
position?: ToastPosition;
overflow?: "scroll" | "truncate" | "clamp";
icon?: Component;
theme?: ToastTheme;
renderAsHtml?: boolean;
}