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.

32 lines (31 loc) 952 B
import type { Snippet } from 'svelte'; import type { HTMLAnchorAttributes, HTMLAttributes, HTMLButtonAttributes } from 'svelte/elements'; interface ButtonProps extends HTMLButtonAttributes { selected?: boolean; start?: Snippet; end?: Snippet; variant: 'button'; supportingText?: Snippet; } interface AnchorProps extends HTMLAnchorAttributes { selected?: boolean; start?: Snippet; end?: Snippet; disabled?: boolean; variant: 'link'; supportingText?: Snippet; } interface TextProps extends HTMLAttributes<HTMLDivElement> { selected?: boolean; start?: Snippet; end?: Snippet; disabled?: boolean; variant?: 'text'; supportingText?: Snippet; } export type ItemProps = ButtonProps | AnchorProps | TextProps; export type ListItemProps = ButtonProps | AnchorProps | TextProps; export interface ListProps extends HTMLAttributes<HTMLUListElement> { element?: HTMLUListElement; } export {};