import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; import type { BreadcrumbSkeletonProps } from "./BreadcrumbSkeleton.svelte"; export type CarbonBreadcrumbContext = { separator: import("svelte/store").Writable; }; type $RestProps = SvelteHTMLElements["nav"]; type $Props = { /** * Set to `true` to hide the separator after the last breadcrumb item * @default false */ noTrailingSlash?: boolean; /** * Set to `true` to display skeleton state * @default false */ skeleton?: boolean; /** * Specify the ARIA label for the nav * @default "Breadcrumb" */ labelText?: string; /** * Specify the size of the breadcrumb. * @default "md" */ size?: "sm" | "md"; /** * Specify the orientation of the breadcrumb. * By default, items stack vertically below the `md` breakpoint * and lay out horizontally above it. * Set to `"vertical"` to always stack items, or `"horizontal"` to never stack them. */ orientation?: "horizontal" | "vertical" | undefined; /** * Specify the separator rendered between breadcrumb items. * Accepts a text character, rendered through CSS, or a component * reference (for example an icon or pictogram component), rendered as * a decorative DOM node. * @example * ```svelte * * Home * * ``` * @default "/" */ separator?: string | Separator; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type BreadcrumbProps = Omit<$RestProps, keyof ($Props & BreadcrumbSkeletonProps)> & Omit> & $Props; export default class Breadcrumb extends SvelteComponentTyped< BreadcrumbProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record } > {}