UNPKG

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.

26 lines (25 loc) 767 B
import type { Snippet } from 'svelte'; import type { HTMLAttributes, HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements'; export interface MenuProps extends HTMLAttributes<HTMLDivElement> { children: Snippet; anchor?: HTMLElement | undefined; showPopover?: () => void; hidePopover?: () => void; element?: HTMLDivElement; open?: boolean; } interface ButtonProps extends HTMLButtonAttributes { selected?: boolean; start?: Snippet; end?: Snippet; supportingText?: Snippet; } interface AnchorProps extends HTMLAnchorAttributes { selected?: boolean; start?: Snippet; end?: Snippet; disabled?: boolean; supportingText?: Snippet; } export type MenuItemProps = ButtonProps | AnchorProps; export {};