import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonBreadcrumbItemContext = Record; /** * ```svelte * * Home * * ``` */ type $RestProps = SvelteHTMLElements["li"]; type $Props = { /** * Set the `href` to use an anchor link. * @default undefined */ href?: string; /** * Set to `true` if the breadcrumb item represents the current page * @default false */ isCurrentPage?: boolean; /** * @example * ```svelte * * Home * * ``` */ children?: ( this: void, ...args: [{ props?: { "aria-current"?: string; class: "bx--link" } }] ) => void; [key: `data-${string}`]: unknown; }; export type BreadcrumbItemProps = Omit<$RestProps, keyof $Props> & $Props; export default class BreadcrumbItem extends SvelteComponentTyped< BreadcrumbItemProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { /** * @example * ```svelte * * Home * * ``` */ default: { props?: { "aria-current"?: string; class: "bx--link" } }; } > {}