import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonBreadcrumbItemContext = Record; /** * Spread `props` onto a custom element to inherit the link class * and `aria-current` attribute when `isCurrentPage` is set. */ type $RestProps = SvelteHTMLElements["li"]; type $Props = { /** * Set the `href` to use an anchor link. */ href?: string | undefined; /** * Set to `true` if the breadcrumb item represents the current page * @default false */ isCurrentPage?: boolean; /** * Specify the icon to render before the label. */ icon?: Icon | undefined; /** * @example * ```svelte * * Home * * ``` */ children?: (this: void, ...args: [{ props?: { "aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"; 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"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"; class: "bx--link"; } }; icon: Record; } > {}