vue3-snackbar
Version:
<p align="center"> <a href="https://evomark.co.uk" target="_blank" alt="Link to evoMark's website"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://evomark.co.uk/wp-content/uploads/static/evomark-logo--dark.svg
40 lines • 1.07 kB
TypeScript
/**
* @callback add
* @param { import("./props").SnackbarMessage } message
* @returns { void }
*/
/**
* @callback clear
* @returns { void }
*/
/**
* @typedef { Object } SnackbarService
* @property { add } add Add a message to the stack
* @property { clear } clear Clear messages from the stack
*/
/**
* Composable which allows accessing the Toast service in Composition API
* @returns { SnackbarService }
*/
export function useSnackbar(): SnackbarService;
/**
* @type { import("vue").Ref<import("./props").SnackbarMessage[]>}
*/
export const messages: import("vue").Ref<import("./props").SnackbarMessage[]>;
export const SnackbarSymbol: unique symbol;
export type SnackbarService = {
/**
* Add a message to the stack
*/
add: add;
/**
* Clear messages from the stack
*/
clear: clear;
};
export namespace SnackbarService {
function install(app: any, config?: {}): void;
}
export type add = (message: import("./props").SnackbarMessage) => void;
export type clear = () => void;
//# sourceMappingURL=service.d.ts.map