@veltdev/sdk
Version:
Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.
20 lines (19 loc) • 411 B
TypeScript
export declare class Toast {
/**
* Unique id for toast notification
*/
id?: number;
/**
* Message to show in toast notification
*/
message: string;
/**
* Type of toast notification
*/
type: 'success' | 'error';
/**
* Duration to show toast notification in milliseconds
* @default 3000 milliseconds (3 seconds)
*/
duration?: number;
}