ui-ingredients
Version:
Headless component library for Svelte powered by zag
20 lines (19 loc) • 583 B
TypeScript
import type { HTMLAnchorAttributes, HTMLAttributes, HTMLLiAttributes, HTMLOlAttributes } from 'svelte/elements';
export interface LinkProps {
href: string;
current?: boolean;
}
/**
* @deprecated
*/
export interface CreateBreadcrumbsReturn {
getRootProps(): HTMLAttributes<HTMLElement>;
getListProps(): HTMLOlAttributes;
getItemProps(): HTMLLiAttributes;
getLinkProps(props: LinkProps): HTMLAnchorAttributes;
getSeparatorProps(): HTMLAttributes<HTMLElement>;
}
/**
* @deprecated
*/
export declare function createBreadcrumbs(): CreateBreadcrumbsReturn;