UNPKG

svelte-5-ui-lib

Version:

Svelte 5 UI Lib is a UI library built from scratch to leverage Svelte 5's runes system, creating smooth, reactive components.

47 lines (46 loc) 1.41 kB
import type { HTMLAttributes, HTMLAnchorAttributes } from 'svelte/elements'; import type { Snippet } from 'svelte'; import type { navbarType } from '../types'; interface NavbarProps extends HTMLAttributes<HTMLElement> { children: Snippet; navSlotBlock?: Snippet; navSlotHiddenTop?: Snippet; navSlotHiddenBottom?: Snippet; toggleNav?: () => void; closeNav?: () => void; navStatus?: boolean | undefined; fluid?: boolean; brand?: Snippet; hamburgerMenu?: boolean; breakPoint?: navbarType['breakPoint']; navClass?: string; divClass?: string; btnClass?: string; div2Class?: string; nonActiveClass?: string; activeClass?: string; } interface NavBrandProps extends HTMLAnchorAttributes { children?: Snippet; siteName?: string | undefined | null; closeNav?: () => void; aClass?: string; spanClass?: string; } interface NavUlProps extends HTMLAttributes<HTMLUListElement> { children: Snippet; class?: string; activeUrl?: string; } interface NavLiProps extends HTMLAnchorAttributes { children: Snippet; closeNav?: () => void; href?: string; aClass?: string; class?: string; } interface NavHamburgerProps extends HTMLAttributes<HTMLButtonElement> { toggleNav: () => void; class?: string; } export { type NavbarProps, type NavBrandProps, type NavLiProps, type NavUlProps, type NavHamburgerProps };