@3mo/split-button
Version:
A split-button web-component based on Material Web Components.
30 lines • 1.05 kB
TypeScript
import { Component } from '@a11d/lit';
/**
* @element mo-split-button
*
* @attr open - Whether the menu is open.
* @attr disabled - Whether the "more" button is disabled.
*
* @slot - The content of the button.
* @slot more - The content of the more menu.
*
* @fires openChange - Dispatched when the menu is opened or closed.
*/
export declare class SplitButton extends Component {
readonly openChange: EventDispatcher<boolean>;
open: boolean;
disabled: boolean;
static get styles(): import("@a11d/lit").CSSResult;
protected get template(): import("lit-html").HTMLTemplateResult;
protected get buttonGroupTemplate(): import("lit-html").HTMLTemplateResult;
protected get moreButtonTemplate(): import("lit-html").HTMLTemplateResult;
private readonly handleMoreClick;
protected get menuTemplate(): import("lit-html").HTMLTemplateResult;
private handleOpenChange;
}
declare global {
interface HTMLElementTagNameMap {
'mo-split-button': SplitButton;
}
}
//# sourceMappingURL=SplitButton.d.ts.map