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.
34 lines (33 loc) • 1.34 kB
TypeScript
export type SnackbarIn = {
message: string;
actions?: Record<string, () => void>;
closable?: boolean;
timeout?: number | null;
};
import { type ComponentProps } from "svelte";
import type { HTMLAttributes } from "svelte/elements";
import SnackbarItem from "./SnackbarItem.svelte";
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
$$bindings?: Bindings;
} & Exports;
(internal: unknown, props: Props & {
$$events?: Events;
$$slots?: Slots;
}): Exports & {
$set?: any;
$on?: any;
};
z_$$bindings?: Bindings;
}
declare const SnackbarAnim: $$__sveltets_2_IsomorphicComponent<{
extraWrapperOptions?: HTMLAttributes<HTMLDivElement>;
extraOptions?: ComponentProps<SnackbarItem>;
show?: ({ message, actions, closable, timeout }: SnackbarIn) => void;
}, {
[evt: string]: CustomEvent<any>;
}, {}, {
show: ({ message, actions, closable, timeout }: SnackbarIn) => void;
}, string>;
type SnackbarAnim = InstanceType<typeof SnackbarAnim>;
export default SnackbarAnim;