mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
28 lines
769 B
TypeScript
28 lines
769 B
TypeScript
/// <reference types="svelte" />
|
|
import type { SvelteComponentTyped } from "svelte";
|
|
|
|
export interface BreadcrumbItemProps
|
|
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["li"]> {
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
export default class BreadcrumbItem extends SvelteComponentTyped<
|
|
BreadcrumbItemProps,
|
|
{
|
|
click: WindowEventMap["click"];
|
|
mouseover: WindowEventMap["mouseover"];
|
|
mouseenter: WindowEventMap["mouseenter"];
|
|
mouseleave: WindowEventMap["mouseleave"];
|
|
},
|
|
{ default: { props?: { ["aria-current"]?: string; class: "bx--link" } } }
|
|
> {}
|