icon.d.ts 724 B

12345678910111213141516171819202122232425262728
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlIcon extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. private svg;
  6. name: string;
  7. src: string;
  8. label: string;
  9. library: string;
  10. slLoad: EventEmitter<void>;
  11. slError: EventEmitter<{
  12. status: number;
  13. }>;
  14. connectedCallback(): void;
  15. firstUpdated(): void;
  16. disconnectedCallback(): void;
  17. getLabel(): string;
  18. private getUrl;
  19. redraw(): void;
  20. setIcon(): Promise<void>;
  21. handleChange(): void;
  22. render(): import("lit-html").TemplateResult<1>;
  23. }
  24. declare global {
  25. interface HTMLElementTagNameMap {
  26. 'sl-icon': SlIcon;
  27. }
  28. }