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.

23 lines (22 loc) 748 B
import type { Snippet } from 'svelte'; import type { HTMLAnchorAttributes, HTMLAttributes, HTMLButtonAttributes } from 'svelte/elements'; export interface NavigationDrawerProps extends HTMLAttributes<HTMLElement> { modal?: boolean; backdrop?: boolean; element?: HTMLElement; direction?: 'rtl' | 'ltr'; } interface NavigationDrawerItemButton extends HTMLButtonAttributes { icon?: Snippet; label: string; selected?: boolean; badgeLabelText?: string; } interface NavigationDrawerItemLink extends HTMLAnchorAttributes { icon?: Snippet; label: string; selected?: boolean; badgeLabelText?: string; } export type NavigationDrawerItemProps = NavigationDrawerItemButton | NavigationDrawerItemLink; export {};