34 lines
1.2 KiB
TypeScript
Executable file
34 lines
1.2 KiB
TypeScript
Executable file
import ShoelaceElement from '../../internal/shoelace-element.js';
|
|
import SlIcon from '../icon/icon.component.js';
|
|
import type { CSSResultGroup } from 'lit';
|
|
/**
|
|
* @summary Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.
|
|
* @documentation https://shoelace.style/components/breadcrumb
|
|
* @status stable
|
|
* @since 2.0
|
|
*
|
|
* @slot - One or more breadcrumb items to display.
|
|
* @slot separator - The separator to use between breadcrumb items. Works best with `<sl-icon>`.
|
|
*
|
|
* @dependency sl-icon
|
|
*
|
|
* @csspart base - The component's base wrapper.
|
|
*/
|
|
export default class SlBreadcrumb extends ShoelaceElement {
|
|
static styles: CSSResultGroup;
|
|
static dependencies: {
|
|
'sl-icon': typeof SlIcon;
|
|
};
|
|
private readonly localize;
|
|
private separatorDir;
|
|
defaultSlot: HTMLSlotElement;
|
|
separatorSlot: HTMLSlotElement;
|
|
/**
|
|
* The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by
|
|
* screen readers and other assistive devices to provide more context for users.
|
|
*/
|
|
label: string;
|
|
private getSeparator;
|
|
private handleSlotChange;
|
|
render(): import("lit-html").TemplateResult<1>;
|
|
}
|