Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled
- Added a comment line to main.ts for deployment verification purposes
22 lines
629 B
TypeScript
22 lines
629 B
TypeScript
import { sileo } from "sileo";
|
|
export { Toaster } from "sileo";
|
|
|
|
interface ToastOptions {
|
|
description?: string;
|
|
duration?: number;
|
|
position?:
|
|
| "top-left"
|
|
| "top-center"
|
|
| "top-right"
|
|
| "bottom-left"
|
|
| "bottom-center"
|
|
| "bottom-right";
|
|
}
|
|
|
|
export const toast = {
|
|
success: (title: string, opts?: ToastOptions) => sileo.success({ title, ...opts }),
|
|
error: (title: string, opts?: ToastOptions) => sileo.error({ title, ...opts }),
|
|
info: (title: string, opts?: ToastOptions) => sileo.info({ title, ...opts }),
|
|
warning: (title: string, opts?: ToastOptions) => sileo.warning({ title, ...opts }),
|
|
};
|