@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
31 lines (30 loc) • 1.36 kB
TypeScript
import { VNode } from "../../stencil-public-runtime";
import { FlipContext, Theme } from "../interfaces";
/** @slot default text slot for link text */
/** Any attributes placed on <calcite-link> component will propagate to the rendered child */
/** Passing a 'href' will render an anchor link, instead of a span. Role will be set to link, or link, depending on this. */
/** It is the consumers responsibility to add aria information, rel, target, for links, and any link attributes for form submission */
export declare class CalciteLink {
el: HTMLCalciteLinkElement;
/** is the link disabled */
disabled?: boolean;
/** optionally pass a href - used to determine if the component should render as a link or an anchor */
href?: string;
/** optionally pass an icon to display at the end of a button - accepts calcite ui icon names */
iconEnd?: string;
/** flip the icon(s) in rtl */
iconFlipRtl?: FlipContext;
/** optionally pass an icon to display at the start of a button - accepts calcite ui icon names */
iconStart?: string;
/** Select theme (light or dark) */
theme: Theme;
connectedCallback(): void;
render(): VNode;
setFocus(): Promise<void>;
/** the rendered child element */
private childEl;
/** the node type of the rendered child element */
private childElType;
private getAttributes;
private storeTagRef;
}