@daks.dev/svelte.sdk
Version:
DAKS.DEV Svelte SDK
44 lines (43 loc) • 1.3 kB
TypeScript
import type { NavItem } from './index.d.ts';
type Options = {
pointer?: boolean;
disabled?: boolean;
};
declare class Nav implements NavItem {
href?: string | null;
target?: string | null;
rel?: string | null;
role?: string | null;
itemprop?: string | null;
base?: string;
disallow?: true;
pointer: boolean;
disabled: boolean;
private pathname;
constructor(args: NavItem, opts?: Options);
get external(): boolean | undefined;
get active(): boolean;
get tag(): 'a' | 'span' | 'button';
get current(): 'page' | 'step' | undefined;
get props(): {
rel: string | null | undefined;
role: string | null | undefined;
href: string | null | undefined;
type: string | undefined;
target: string | null | undefined;
'aria-current': "page" | "step" | undefined;
itemprop: string | null | undefined;
};
static props: (item: NavItem) => {
label?: string;
icon?: string;
href?: string | null;
target?: string | null;
title?: string | null;
rel?: string | null;
role?: string | null;
itemprop?: string | null;
};
static map: (items?: NavItem[], fully?: boolean, base?: string) => string[];
}
export default Nav;