noph-ui
Version:
Noph UI is a modern, powerful UI library for Svelte 5, fully aligned with the Material 3 guidelines. Build stunning, consistent user interfaces with the efficiency and flexibility of Svelte and Google’s Material Design framework.
17 lines (16 loc) • 546 B
TypeScript
import type { Snippet } from 'svelte';
import type { HTMLAttributes } from 'svelte/elements';
export interface SnackbarProps extends HTMLAttributes<HTMLDivElement> {
label: string;
open?: boolean;
supportingText?: string | undefined;
actionLabel?: string | undefined;
onActionClick?: (event: Event) => void;
icon?: Snippet | undefined;
onIconClick?: (event: Event) => void;
showPopover?: () => void;
hidePopover?: () => void;
timeout?: number;
element?: HTMLElement;
popover?: 'auto' | 'manual';
}