button.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlButton extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. button: HTMLButtonElement | HTMLLinkElement;
  6. private hasFocus;
  7. private hasLabel;
  8. private hasPrefix;
  9. private hasSuffix;
  10. type: 'default' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'text';
  11. size: 'small' | 'medium' | 'large';
  12. caret: boolean;
  13. disabled: boolean;
  14. loading: boolean;
  15. pill: boolean;
  16. circle: boolean;
  17. submit: boolean;
  18. name: string;
  19. value: string;
  20. href: string;
  21. target: '_blank' | '_parent' | '_self' | '_top';
  22. download: string;
  23. slBlur: EventEmitter<void>;
  24. slFocus: EventEmitter<void>;
  25. connectedCallback(): void;
  26. click(): void;
  27. focus(options?: FocusOptions): void;
  28. blur(): void;
  29. handleSlotChange(): void;
  30. handleBlur(): void;
  31. handleFocus(): void;
  32. handleClick(event: MouseEvent): void;
  33. render(): import("lit-html").TemplateResult<1>;
  34. }
  35. declare global {
  36. interface HTMLElementTagNameMap {
  37. 'sl-button': SlButton;
  38. }
  39. }