UNPKG

m3-svelte

Version:

M3 Svelte implements the Material 3 design system in Svelte. See the [website](https://ktibow.github.io/m3-svelte/) for demos and usage instructions.

20 lines (19 loc) 695 B
export type SnackbarIn = { message: string; actions?: Record<string, () => void>; closable?: boolean; timeout?: number | null; }; import { type ComponentProps } from "svelte"; import SnackbarItem from "./SnackbarItem.svelte"; import type { DivAttrs } from "../misc/typing-utils"; type SnackbarConfig = Omit<ComponentProps<typeof SnackbarItem>, "children">; type $$ComponentProps = { config?: SnackbarConfig; closeButtonTitle?: string; } & DivAttrs; declare const Snackbar: import("svelte").Component<$$ComponentProps, { show: ({ message, actions, closable, timeout }: SnackbarIn) => void; }, "">; type Snackbar = ReturnType<typeof Snackbar>; export default Snackbar;